CollectionProvider<T extends CollectionChangeNotifier> constructor
CollectionProvider<T extends CollectionChangeNotifier> ({
- Key? key,
- required Create<
T> create, - bool? lazy,
- TransitionBuilder? builder,
- Widget? child,
Creates a CollectionProvider using create
and automatically
dispose it when CollectionProvider is removed from the widget tree.
create
must not be null
.
Implementation
CollectionProvider({
Key? key,
required Create<T> create,
bool? lazy,
TransitionBuilder? builder,
Widget? child,
}) : super(
key: key,
create: create,
lazy: lazy,
builder: builder,
child: child,
);