isTrue static method

void isTrue(
  1. bool value
)

Implementation

static void isTrue(bool value) {
  assert(() {
    if (!value) {
      throw new FlutterError('assert: Object is false!');
    }
    return true;
  }());
}