when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult loading(),
- required TResult initialState(),
- required TResult fetched(
- Map<
String, MetricWrapper> ? metricData, - List<
TableWrapper> ? tableData, - DateTime? selectedDate,
- bool? isNetworkError,
- Map<
- required TResult error(),
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function() loading,
required TResult Function() initialState,
required TResult Function(
Map<String, MetricWrapper>? metricData,
List<TableWrapper>? tableData,
DateTime? selectedDate,
bool? isNetworkError)
fetched,
required TResult Function() error,
}) =>
throw _privateConstructorUsedError;