FlutterErrorDetails constructor

const FlutterErrorDetails(
  1. {required Object exception,
  2. StackTrace? stack,
  3. String? library = 'Flutter framework',
  4. DiagnosticsNode? context,
  5. IterableFilter<String>? stackFilter,
  6. InformationCollector? informationCollector,
  7. 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.

Implementation

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