isRelease top-level property

bool get isRelease

Check whether in release mode

Implementation

bool get isRelease {
  if (_isRelease == null) {
    _isRelease = true;
    assert(() {
      _isRelease = false;
      return true;
    }());
  }
  return _isRelease!;
}