print static method

void print(
  1. Object? object, {
  2. bool? isLog,
  3. String? fileLocation,
  4. bool? isDebug,
})

log supportting on multiple consoles @paramisDebug: default printing only on debug mode, not set using @param static isDebugPrint.

Implementation

static void print(Object? object, {bool? isLog, String? fileLocation, bool? isDebug}) {
  final String fileInfo = Dev.isLogFileLocation ?
  (fileLocation != null ? '($fileLocation): ' : '(${StackTrace.current.toString().split('\n')[1].split('/').last}: ')
   : '';
  String msg = "$object";
  DevColorizedLog.logCustom(msg,
    enable: Dev.enable,
    isLog: isLog,
    isMultConsole: true,
    isDebugPrint: isDebug ?? Dev.isDebugPrint,
    fileInfo: fileInfo,
  );
}