RendererBLoC<V extends RendererEvent, S extends RendererState> class
abstract
The Parent class of all BLoCs in a project. It has all the required functions to make any BLoC function reactively It must be provided with both RendererEvent and RendererState types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closeSubject(
) → void - called inside dispose implementation in any BLoC class to provide a way to close the publish subject safely and avoid memory leaks.
-
dispatch(
V event) → void -
Called internally from RendererFire only to trigger a certain
event of type
V
-
dispose(
) → void - To be implemented inside BLoC class to close/stop/dispose any subscribed resources.
-
getSubject(
Object consumer) → PublishSubject? -
Called internally from Renderer widget only to subscribe
to
_rendererSubject
and start receiving new relative UI States -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyRenderers(
S state) → void -
Called from any BLoC instance to notify all Renderers about
a new UI State of type
S
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited