customPrint function

void customPrint(
  1. Object? data, {
  2. bool showPrint = false,
  3. bool overrideDebugCondition = true,
})

this will customize the prints and you can disable all prints at once

Implementation

void customPrint(
  Object? data, {
  bool showPrint = false,
  bool overrideDebugCondition = true,
}) {
  if (CustomStylesConfig.showPrintStatements || showPrint) {
    if (kDebugMode || overrideDebugCondition) {
      // ignore: avoid_print
      print('${DateTime.now()} : $data');

      return;
    }
  }
}