test static method

void test(
  1. Object? object, {
  2. LoggerOptions? options,
})

Implementation

static void test(Object? object, {LoggerOptions? options}) {
  final location = _getLocation();
  LoggingRegistry().useLogging(LogLevel.test, object);
  if (options?.isDebug == true) {
    debugPrint(
        "${DateTime.now().toIso8601String()} ${chalk.green("TEST: $object")} ${chalk.grey('Location: $location')}");
    return;
  }
  developer.log(
      "${DateTime.now().toIso8601String()} ${chalk.green("TEST: $object")} ${chalk.grey('Location: $location')}");
}