errorOrNull property
The error, or null if not in error state.
Implementation
Object? get errorOrNull => switch (this) {
AsyncError<T>(:final error) => error,
_ => null,
};
The error, or null if not in error state.
Object? get errorOrNull => switch (this) {
AsyncError<T>(:final error) => error,
_ => null,
};