error static method

void error(
  1. Object? object
)

Implementation

static void error(Object? object) {
  final location = _getLocation();
  FlutterError.onError = (FlutterErrorDetails details) {
    //FirebaseCrashlytics.instance.recordFlutterFatalError(details);
  };
  developer.log(
      "${DateTime.now().toIso8601String()} ${chalk.red("ERROR: $object")} ${chalk.grey('Location: $location')}");
}