-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
flutter/plugins
#2123Labels
a: error messageError messages from the Flutter frameworkError messages from the Flutter frameworkp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
private void sendEvent(EventType eventType, String description) {
if (eventSink != null) {
Map<String, String> event = new HashMap<>();
event.put("eventType", eventType.toString().toLowerCase());
// Only errors have description
if (eventType != EventType.ERROR) {
event.put("errorDescription", description);
}
eventSink.success(event);
}
}
should be '==', not is '!='.
if (eventType == EventType.ERROR) {
event.put("errorDescription", description);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: error messageError messages from the Flutter frameworkError messages from the Flutter frameworkp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.