warn static method

void warn(
  1. Object? object
)

Implementation

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