warning function

void warning(
  1. String message
)

Logs a warning message to the console. Only logged if Settings.debugLevel is DebugLevel.warning or higher.

Implementation

void warning(String message) => (Settings().debugLevel.index >= DebugLevel.warning.index)
    ? debugPrint('\x1B[31m[CAMS WARNING]\x1B[0m $message')
    : 0;