whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult idle()?,
  2. TResult loading()?,
  3. TResult success(
    1. T data
    )?,
  4. TResult failure(
    1. String reason
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult Function()? idle,
  TResult Function()? loading,
  TResult Function(T data)? success,
  TResult Function(String reason)? failure,
}) =>
    throw _privateConstructorUsedError;