RepositoryProvider<T extends Repository> constructor

const RepositoryProvider<T extends Repository>({
  1. required T create(
    1. BuildContext
    ),
  2. required Widget child,
  3. Key? key,
})

create shows how the repository will instantiated.

Implementation

const RepositoryProvider({
  required this.create,
  required this.child,
  super.key,
});