MockObservable<T> class
- Inheritance
-
- Object
- Observable<
T> - MockObservable
- Available extensions
Constructors
- MockObservable.new(T initial)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
history
→ List<
T> -
no setter
- isDisposed → bool
-
Whether this object has been disposed.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
value method.
getter/setter pairinherited-getteroverride-setter
Methods
-
addDisposeCallback(
VoidCallback callback) → void -
Add a callback to be executed during disposal.
inherited
-
addListener(
VoidCallback listener) → void -
addListener method.
inherited
-
addSubscription(
StreamSubscription subscription) → void -
Add a stream subscription to be cancelled during disposal.
inherited
-
clearHistory(
) → void -
combineWith<
U, R> (Observable< U> other, R combiner(T, U)) → Observable<R> -
Available on Observable<
T> , provided by the ObservableSelector extension -
dispose(
) → void -
dispose method.
inherited
-
emit(
T value) → void -
emitSequence(
List< T> values) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → T -
read method.
inherited
-
removeListener(
VoidCallback listener) → void -
removeListener method.
inherited
-
select<
R> (R selector(T)) → Observable< R> -
Available on Observable<
selectR> method.T> , provided by the ObservableSelector extension -
setDebounceTimer(
Timer timer) → void -
Set or update the debounce timer.
inherited
-
setValueDebounced(
T newValue, Duration delay) → void -
setValueDebounced method.
inherited
-
throwIfDisposed(
[String? operation]) → void -
Throw if this object has been disposed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateEmail(
) → Observable< String?> -
Available on Observable<
validateEmail method.String> , provided by the StringValidation extension -
validateLength(
{int? min, int? max}) → Observable< String?> -
Available on Observable<
validateLength method.String> , provided by the StringValidation extension -
watch(
) → T -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited