getOrNull method

T? getOrNull()

Implementation

T? getOrNull() {
  if (isSuccess()) {
    return (this as _Success).value as T;
  } else {
    return null;
  }
}