log static method

void log(
  1. Object? data
)

Implementation

static void log(Object? data) {
  bool prod =
  const bool.fromEnvironment('ISPRODUCT_ENV', defaultValue: false);
  if (!prod) {
    // ignore: avoid_print
    print("===================================");
    // ignore: avoid_print
    print("IM_DEMO_PRINT:$data");
    // ignore: avoid_print
    print("===================================");
  } else {}
}