checkNotNull static method

void checkNotNull(
  1. Object? object
)

Implementation

static void checkNotNull(Object? object) {
  if (object == null) {
    try {
      throw Exception("object is null");
    } catch (e, stack) {
      report(e: e, stack: stack);
      rethrow;
    }
  }
}