orNull property

T? get orNull

Implementation

T? get orNull {
  switch (this) {
    case ParseFailure():
      return null;
    case ParseSuccess(:final result):
      return result;
  }
}