error method

void error({
  1. required String code,
  2. String? message,
  3. Object? details,
})

Send an error event.

Implementation

void error({
  required String code,
  String? message,
  Object? details,
}) => _sink.addError(PlatformException(code: code, message: message, details: details));