Repository class abstract
This is the building block of your Repository layer.
Place all of your platform specific and network specific implementations inside an individual Repository! This is also a great place to implement some test classes so that you can more easily test your Blocs.
Provide this down with RepositoryProvider
- Implemented types
Constructors
Properties
- channel ↔ BlocEventChannel
-
This is shared between all Repositorys in the repository layer.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
override
-
generateListenerMap(
BlocEventChannel channel) → Map< BlocEvent, BlocEventListener> -
Generates the listener map that this Repository will remove from the
channel
when this repository is disposed. -
initialize(
BlocEventChannel channel) → void -
Initializes this repository, adding the listeners produced by generateListenerMap to the given
channel
. -
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