mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This introduces a bunch of code that should only run in debug builds, but we don't have #ifdefs yet. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1182933003.
13 lines
208 B
Dart
13 lines
208 B
Dart
|
|
final bool inDebugBuild = _initInDebugBuild();
|
|
|
|
bool _initInDebugBuild() {
|
|
bool _inDebug = false;
|
|
bool setAssert() {
|
|
_inDebug = true;
|
|
return true;
|
|
}
|
|
assert(setAssert());
|
|
return _inDebug;
|
|
}
|