inDebugger property

bool inDebugger

Determines if running in an IDE or in production. Returns true if the App is under in the Debugger and not production.

Implementation

static bool get inDebugger {
  var inDebugMode = false;
  // assert is removed in production.
  assert(inDebugMode = true);
  return inDebugMode;
}