buildMode top-level property

BuildMode buildMode
getter/setter pair

Implementation

BuildMode buildMode = () {
  if (kReleaseMode) {
    return BuildMode.release;
  }
  if (kProfileMode) {
    return BuildMode.profile;
  }
  if (kDebugMode) {
    return BuildMode.debug;
  }
  assert(false, 'Cannot determined Build Mode');
  // ignore: null_check_always_fails
  return null!;
}();