isNone method

bool isNone()

Returns true if the option is a None value.

Implementation

@pragma("vm:prefer-inline")
bool isNone() {
  return this == null;
}