flutterErrorFactory property
A function that creates FlutterError
instances with the provided
message.
Implementation
@override
FlutterErrorFactory get flutterErrorFactory {
// A FlutterError implements the AssertionError type, therefore
// we use AssertionErrors when we cannot use the Flutter SDK.
//
// See https://api.flutter.dev/flutter/foundation/FlutterError-class.html
return AssertionError.new;
}