collectFlutterError abstract method

Future<void> collectFlutterError({
  1. required FlutterErrorDetails details,
  2. bool presentErrorDetails = true,
})

Sends a report of an error caught by the Flutter framework.

The details parameter contains the Flutter error information. The presentErrorDetails parameter controls whether to print the error details in the console (defaults to true).

Implementation

Future<void> collectFlutterError({
  required FlutterErrorDetails details,
  bool presentErrorDetails = true,
});