whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult loading()?,
  2. TResult error(
    1. Object? error
    )?,
  3. TResult data(
    1. T value,
    2. bool isDone
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult Function()? loading,
  TResult Function(Object? error)? error,
  TResult Function(T value, bool isDone)? data,
}) =>
    throw _privateConstructorUsedError;