ComplaintsRegistrationState class

Implementers
Annotations
  • @freezed

Constructors

ComplaintsRegistrationState.create({@Default(false) bool loading, String? complaintType, String? otherComplaintTypeDescription, PgrAddressModel? addressModel, ComplaintsDetailsModel? complaintsDetailsModel})
const
factory
ComplaintsRegistrationState.persisted()
const
factory
ComplaintsRegistrationState.view({required String complaintType, required PgrAddressModel addressModel, required ComplaintsDetailsModel complaintsDetailsModel})
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 create(ComplaintsRegistrationCreateState value), required TResult view(ComplaintsRegistrationViewState value), required TResult persisted(ComplaintsRegistrationPersistedState value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? create(ComplaintsRegistrationCreateState value)?, TResult? view(ComplaintsRegistrationViewState value)?, TResult? persisted(ComplaintsRegistrationPersistedState value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult create(ComplaintsRegistrationCreateState value)?, TResult view(ComplaintsRegistrationViewState value)?, TResult persisted(ComplaintsRegistrationPersistedState value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult create(bool loading, String? complaintType, String? otherComplaintTypeDescription, PgrAddressModel? addressModel, ComplaintsDetailsModel? complaintsDetailsModel)?, TResult view(String complaintType, PgrAddressModel addressModel, ComplaintsDetailsModel complaintsDetailsModel)?, TResult persisted()?, 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 create(bool loading, String? complaintType, String? otherComplaintTypeDescription, PgrAddressModel? addressModel, ComplaintsDetailsModel? complaintsDetailsModel), required TResult view(String complaintType, PgrAddressModel addressModel, ComplaintsDetailsModel complaintsDetailsModel), required TResult persisted()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? create(bool loading, String? complaintType, String? otherComplaintTypeDescription, PgrAddressModel? addressModel, ComplaintsDetailsModel? complaintsDetailsModel)?, TResult? view(String complaintType, PgrAddressModel addressModel, ComplaintsDetailsModel complaintsDetailsModel)?, TResult? persisted()?}) → TResult?
inherited

Operators

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