RecordHFReferralState class

Implementers
Annotations
  • @freezed

Constructors

RecordHFReferralState.create({@Default(false) bool loading, required String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, @Default(false) bool viewOnly})
const
factory
RecordHFReferralState.error({String? error})
const
factory
RecordHFReferralState.persisted({required String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, @Default(false) bool viewOnly})
const
factory
RecordHFReferralState.view({required String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, @Default(false) bool viewOnly})
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(RecordHFReferralCreateState value), required TResult persisted(RecordHFReferralPersistedState value), required TResult view(RecordHFReferralViewState value), required TResult error(RecordHFReferralErrorState value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? create(RecordHFReferralCreateState value)?, TResult? persisted(RecordHFReferralPersistedState value)?, TResult? view(RecordHFReferralViewState value)?, TResult? error(RecordHFReferralErrorState value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult create(RecordHFReferralCreateState value)?, TResult persisted(RecordHFReferralPersistedState value)?, TResult view(RecordHFReferralViewState value)?, TResult error(RecordHFReferralErrorState value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult create(bool loading, String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly)?, TResult persisted(String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly)?, TResult view(String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly)?, TResult error(String? error)?, 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 projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly), required TResult persisted(String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly), required TResult view(String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly), required TResult error(String? error)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? create(bool loading, String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly)?, TResult? persisted(String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly)?, TResult? view(String projectId, String? facilityId, DateTime? dateOfEvaluation, String? healthFacilityCord, String? referredBy, HFReferralModel? hfReferralModel, bool viewOnly)?, TResult? error(String? error)?}) → TResult?
inherited

Operators

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