FacilityEvent class

FacilityEvent is a freezed union of all possible events that can occur in the FacilityBloc.

Implementers
Annotations
  • @freezed

Constructors

FacilityEvent.loadForProjectId({required String projectId, @Default(true) bool loadAllProjects})
The FacilityLoadForProjectEvent event is triggered when facilities need to be loaded for a project.
const
factory

Properties

copyWith → $FacilityEventCopyWith<FacilityEvent>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
loadAllProjects bool
no setterinherited
projectId String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult loadForProjectId(FacilityLoadForProjectEvent value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? loadForProjectId(FacilityLoadForProjectEvent value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult loadForProjectId(FacilityLoadForProjectEvent value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult loadForProjectId(String projectId, bool loadAllProjects)?, 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 loadForProjectId(String projectId, bool loadAllProjects)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? loadForProjectId(String projectId, bool loadAllProjects)?}) → TResult?
inherited

Operators

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