EntityStreamedState<T> class

StreamedState that have download/error/content status

Inheritance
Implemented types

Constructors

EntityStreamedState([EntityState<T>? initialData])
EntityStreamedState.from(Stream<EntityState<T>> stream)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<EntityState<T>>
The stream to which the event is transmitted
no setterinherited
value EntityState<T>
Current value of stream
no setterinherited

Methods

accept(EntityState<T> data) Future<void>
Acceptance of a new event
inherited
acceptUnique(EntityState<T> data) Future<void>
Accepts new data if current value is not equal to data
inherited
content(T data) Future<void>
Acceptance of a new entity event
override
dispose() → void
inherited
error([Exception? exception, T? data]) Future<void>
Setting the event data is error
override
loading([T? previousData]) Future<void>
Setting the event data is loading
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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