family<T, P> static method
StreamFamilyProvider<T, P>
family<T, P>(
- StreamFamilyBuilder<
T, P> stream, { - String describeState(
- AsyncValue<
T> state
- AsyncValue<
- String? debugLabel,
- bool debugVisibleInGraph = true,
A shorthand for StreamFamilyProvider.
Implementation
static StreamFamilyProvider<T, P> family<T, P>(
StreamFamilyBuilder<T, P> stream, {
String Function(AsyncValue<T> state)? describeState,
String? debugLabel,
bool debugVisibleInGraph = true,
}) {
return StreamFamilyProvider(
stream,
describeState: describeState,
debugLabel: debugLabel ?? 'StreamFamilyProvider<$T, $P>',
debugVisibleInGraph: debugVisibleInGraph,
);
}