FlutterErrorDetails constructor Null safety
- {required Object exception,
- StackTrace? stack,
- String? library = 'Flutter framework',
- DiagnosticsNode? context,
- IterableFilter<
String> ? stackFilter, - InformationCollector? informationCollector,
- bool silent = false}
Creates a FlutterErrorDetails object with the given arguments setting the object's properties.
The framework calls this constructor when catching an exception that will subsequently be reported using FlutterError.onError.
The exception must not be null; other arguments can be left to their default values.
Implementation
const FlutterErrorDetails({
required this.exception,
this.stack,
this.library = 'Flutter framework',
this.context,
this.stackFilter,
this.informationCollector,
this.silent = false,
}) : assert(exception != null);