warning static method

void warning(
  1. String message
)

Logs a warning. Throttled to avoid flooding on repeated events.

Implementation

static void warning(String message) {
  if (!kDebugMode) return;
  if (_isThrottled(message)) return;
  _record('⚠ $message');
  debugPrint('⚠ $message');
}