operator [] method

T operator [](
  1. _OptionEarlyReturnKey op
)

Functions an "Early Return Operator" when given an "Early Return key" "$". See Option.$ for more information.

Implementation

T operator [](_OptionEarlyReturnKey op) {
  if (v == null) {
    throw const _OptionEarlyReturnNotification();
  } else {
    return v!;
  }
}