StreamProvider<T> constructor
StreamProvider<T> ({
- required Create<
Stream< create,T> ?> - required T initialData,
- Key? key,
- ErrorBuilder<
T> ? catchError, - UpdateShouldNotify<
T> ? updateShouldNotify, - bool? lazy,
- TransitionBuilder? builder,
- Widget? child,
Provides the last value of the stream create makes, initialData
until it gives one.
Implementation
StreamProvider({
required super.create,
required T initialData,
super.key,
ErrorBuilder<T>? catchError,
super.updateShouldNotify,
super.lazy,
super.builder,
super.child,
}) : super(
startListening: _streamStartListening(
initialData: initialData,
catchError: catchError,
),
);