assertsEnabled top-level property

bool get assertsEnabled

Returns true if assert is enabled.

Implementation

bool get assertsEnabled {
  var result = false;
  assert(
    () {
      result = true;
      return true;
    }(),
  );
  return result;
}