onError abstract method

void onError(
  1. ErrorType type,
  2. Object error,
  3. StackTrace? stackTrace,
  4. FlutterErrorDetails? flutterErrorDetails,
)

The callback which is called when an error occurs.

Implementation

void onError(
  ErrorType type,
  Object error,
  StackTrace? stackTrace,
  FlutterErrorDetails? flutterErrorDetails,
);