RepositoryProvider<T>.value constructor

RepositoryProvider<T>.value({
  1. required T value,
  2. Key? key,
  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({
  required T value,
  Key? key,
  Widget? child,
}) : super.value(
        key: key,
        value: value,
        child: child,
      );