ViewModel class abstract

Inheritance

Constructors

ViewModel({String? errorMessage, ViewStatus status = ViewStatus.loading, Iterable<IObservable<BaseEvent>>? changes})

Properties

changes Stream<BaseEvent>
no setteroverride
errorMessage String?
no setter
eventSubject → BehaviorSubject<BaseEvent>
finalinherited
hasChanges bool
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
lastEvent ViewChangedEvent
getter/setter pair
observables Iterable<IObservable<BaseEvent>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ViewStatus
no setter

Methods

dispose() → void
inherited
emit(ViewStatus value, {String? errorMessage, Exception? exception, String? reason, Iterable<IObservable<BaseEvent>>? changes}) → void
error(Exception exception, {Iterable<IObservable<BaseEvent>>? changes}) → void
loadView(FutureOr<void> load(), {String? readyReason, Iterable<IObservable<BaseEvent>>? readyChanges, Iterable<IObservable<BaseEvent>>? errorChanges}) FutureOr<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
raiseEvent(BaseEvent event) → void
inherited
ready({String? reason, Iterable<IObservable<BaseEvent>>? changes}) → void
submissionError(Exception exception, {Iterable<IObservable<BaseEvent>>? changes}) → void
submissionSuccess({String? reason, Iterable<IObservable<BaseEvent>>? changes}) → void
submit(FutureOr<bool> submission(), {String? submissionReason, Iterable<IObservable<BaseEvent>>? submissionChanges, String? successReason, Iterable<IObservable<BaseEvent>>? successChanges, Iterable<IObservable<BaseEvent>>? errorChanges}) FutureOr<bool>
submitting({String? reason, Iterable<IObservable<BaseEvent>>? changes}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override