when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult loading(),
  2. required TResult initialState(),
  3. required TResult fetched(
    1. Map<String, MetricWrapper>? metricData,
    2. List<TableWrapper>? tableData,
    3. DateTime? selectedDate,
    4. bool? isNetworkError,
    ),
  4. 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;