map<TResult extends Object?> method

  1. @optionalTypeArgs
TResult map<TResult extends Object?>({
  1. required TResult empty(
    1. UserEmptyState value
    ),
  2. required TResult loading(
    1. UserLoadingState value
    ),
  3. required TResult user(
    1. UserUserState value
    ),
  4. required TResult error(
    1. UserErrorState value
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult map<TResult extends Object?>({
  required TResult Function(UserEmptyState value) empty,
  required TResult Function(UserLoadingState value) loading,
  required TResult Function(UserUserState value) user,
  required TResult Function(UserErrorState value) error,
}) =>
    throw _privateConstructorUsedError;