RepositoryProvider<T>.value constructor

RepositoryProvider<T>.value(
  1. {Key key,
  2. @required T value,
  3. Widget child}
)

Takes a repository and a child which will have access to the repository. A new repository should not be created in RepositoryProvider.value. Repositories should always be created using the default constructor within the Create function.

Implementation

RepositoryProvider.value({
  Key key,
  @required T value,
  Widget child,
}) : super.value(
        key: key,
        value: value,
        child: child,
      );