error property

Object? get error

Implementation

Object? get error => switch (this) {
  AsyncError<T>(:final error) => error,
  _ => null,
};