notNull property

Obj<T> get notNull

Returns a new Obj<T> with the value of the current Obj<T?> if it's not null.

Implementation

Obj<T> get notNull {
  assert(value != null);
  return Obj<T>(value as T);
}