error property
Object?
get
error
Returns the error if present, otherwise null.
Implementation
Object? get error => switch (this) {
AsyncError<T>(:final error) => error,
_ => null,
};
Returns the error if present, otherwise null.
Object? get error => switch (this) {
AsyncError<T>(:final error) => error,
_ => null,
};