check static method

void check(
  1. String feature
)

Call when a feature is enabled. In release builds this records the opt-in and prints a one-time warning.

Implementation

static void check(String feature) {
  if (!kReleaseMode) return;
  _optedIn = true;
  if (_warned) return;
  _warned = true;
  // ignore: avoid_print
  print(
    '⚠️ dio_debug_logger: $feature is enabled in a RELEASE build. Anyone '
    'holding this device can open the log and see network traffic. Never '
    'ship this to an app store.',
  );
}