cockpitExpectNotNull function

void cockpitExpectNotNull(
  1. Object? value, {
  2. String? reason,
})

Asserts value is not null.

Implementation

void cockpitExpectNotNull(Object? value, {String? reason}) {
  if (value != null) return;
  _fail('Expected a non-null value.', reason: reason);
}