onError method Null safety

  1. @visibleForOverriding
void onError(
  1. Object error,
  2. [StackTrace? stackTrace]
)
visibleForOverriding">@visibleForOverriding

A method that handles error events that are passed to the sink.

Implementation

@visibleForOverriding
void onError(Object error, [StackTrace? stackTrace]);