whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? loading()?,
  2. TResult? initialState()?,
  3. TResult? fetched(
    1. Map<String, MetricWrapper>? metricData,
    2. List<TableWrapper>? tableData,
    3. DateTime? selectedDate,
    4. bool? isNetworkError,
    )?,
  4. TResult? error()?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;