whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? empty()?,
  2. TResult? loading()?,
  3. TResult? user(
    1. UserModel? userModel
    )?,
  4. TResult? error(
    1. String? error
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function()? empty,
  TResult? Function()? loading,
  TResult? Function(UserModel? userModel)? user,
  TResult? Function(String? error)? error,
}) =>
    throw _privateConstructorUsedError;