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