logSuccess static method

void logSuccess(
  1. String msg, {
  2. bool? isLog,
  3. bool? execFinalFunc,
  4. String? printOnceIfContains,
})

Green text

Implementation

static void logSuccess(String msg,
    {bool? isLog, bool? execFinalFunc, String? printOnceIfContains}) {
  final String fileInfo = Dev.isLogFileLocation
      ? '(${StackTrace.current.toString().split('\n')[1].split('/').last}: '
      : '';
  DevColorizedLog.logCustom(
    msg,
    devLevel: DevLevel.logSuc,
    enable: Dev.enable,
    colorInt: execFinalFunc != null && execFinalFunc
        ? _exeColorMap[DevLevel.logSuc]!
        : _logColorMap[DevLevel.logSuc]!,
    isLog: isLog,
    fileInfo: fileInfo,
    name: 'logSuc',
    execFinalFunc: execFinalFunc,
    printOnceIfContains: printOnceIfContains,
  );
}