notNull property

Obj<T> 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);
}