RepositoryBuilder<T extends Repository> class
This lets you define a builder for a Repository that can be used for MultiRepositoryProvider and TestEnvironment
Unlike with Provider, you need to specify the generic. Failing to do so will set the generic to Repository which is probably undesirable.
Constructors
-
RepositoryBuilder(CreateRepository<
T> builder) - Unlike with Provider, you need to specify the generic. Failing to do so will set the generic to Repository which is probably undesirable.
Properties
-
builder
→ CreateRepository<
T> -
The function to create the instance of the repository.
final
- builderType → Type
-
The type of the created repository.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createProvider(
Widget child) → RepositoryProvider< T> - Generates the RepositoryProvider to be placed into the widget tree.
-
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