FlutterErrorDetails constructor

const FlutterErrorDetails({dynamic exception, StackTrace stack, String library: 'Flutter framework', String 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. (throw null results in a NullThrownError exception.)

Implementation

const FlutterErrorDetails({
  this.exception,
  this.stack,
  this.library = 'Flutter framework',
  this.context,
  this.stackFilter,
  this.informationCollector,
  this.silent = false
});