ProjectFacilityState class

ProjectFacilityState is a freezed union of all possible states that can occur in the ProjectFacilityBloc.

Implementers
Annotations
  • @freezed

Constructors

ProjectFacilityState.empty()
The ProjectFacilityEmptyState state represents the state where no project facilities are loaded.
const
factory
ProjectFacilityState.fetched({required List<ProjectFacilityModel> projectFacilities})
The ProjectFacilityFetchedState state represents the state where project facilities have been loaded.
const
factory
ProjectFacilityState.loading()
The ProjectFacilityLoadingState state represents the state where project facilities are being loaded.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult empty(ProjectFacilityEmptyState value), required TResult loading(ProjectFacilityLoadingState value), required TResult fetched(ProjectFacilityFetchedState value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? empty(ProjectFacilityEmptyState value)?, TResult? loading(ProjectFacilityLoadingState value)?, TResult? fetched(ProjectFacilityFetchedState value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult empty(ProjectFacilityEmptyState value)?, TResult loading(ProjectFacilityLoadingState value)?, TResult fetched(ProjectFacilityFetchedState value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult empty()?, TResult loading()?, TResult fetched(List<ProjectFacilityModel> projectFacilities)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult empty(), required TResult loading(), required TResult fetched(List<ProjectFacilityModel> projectFacilities)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? empty()?, TResult? loading()?, TResult? fetched(List<ProjectFacilityModel> projectFacilities)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited