ServiceState class

Implementers
Annotations
  • @freezed

Constructors

ServiceState.empty()
const
factory
ServiceState.isloading()
const
factory
ServiceState.multichecklistChanged({@Default('') String value, @Default(false) bool submitTriggered})
const
factory
ServiceState.serviceCreate({required ServiceModel serviceList, ServiceModel? selectedService, @Default(false) bool loading, @Default(false) bool isEditing})
const
factory
ServiceState.serviceSearch({required List<ServiceModel> serviceList, ServiceModel? selectedService, @Default(false) bool loading})
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(ServiceEmptyState value), required TResult isloading(ServiceIsloadingState value), required TResult multichecklistChanged(ServiceMultichecklistChangedState value), required TResult serviceCreate(ServiceCreateState value), required TResult serviceSearch(ServiceSearchState value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? empty(ServiceEmptyState value)?, TResult? isloading(ServiceIsloadingState value)?, TResult? multichecklistChanged(ServiceMultichecklistChangedState value)?, TResult? serviceCreate(ServiceCreateState value)?, TResult? serviceSearch(ServiceSearchState value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult empty(ServiceEmptyState value)?, TResult isloading(ServiceIsloadingState value)?, TResult multichecklistChanged(ServiceMultichecklistChangedState value)?, TResult serviceCreate(ServiceCreateState value)?, TResult serviceSearch(ServiceSearchState value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult empty()?, TResult isloading()?, TResult multichecklistChanged(String value, bool submitTriggered)?, TResult serviceCreate(ServiceModel serviceList, ServiceModel? selectedService, bool loading, bool isEditing)?, TResult serviceSearch(List<ServiceModel> serviceList, ServiceModel? selectedService, bool loading)?, 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 isloading(), required TResult multichecklistChanged(String value, bool submitTriggered), required TResult serviceCreate(ServiceModel serviceList, ServiceModel? selectedService, bool loading, bool isEditing), required TResult serviceSearch(List<ServiceModel> serviceList, ServiceModel? selectedService, bool loading)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? empty()?, TResult? isloading()?, TResult? multichecklistChanged(String value, bool submitTriggered)?, TResult? serviceCreate(ServiceModel serviceList, ServiceModel? selectedService, bool loading, bool isEditing)?, TResult? serviceSearch(List<ServiceModel> serviceList, ServiceModel? selectedService, bool loading)?}) → TResult?
inherited

Operators

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