RecordStockState class

Implementers
Annotations
  • @freezed

Constructors

RecordStockState.create({required StockRecordEntryType entryType, @Default(false) bool loading, required String projectId, DateTime? dateOfRecord, String? primaryType, String? primaryId, FacilityModel? facilityModel, StockModel? stockModel})
const
factory
RecordStockState.persisted({required StockRecordEntryType entryType, required String projectId, DateTime? dateOfRecord, FacilityModel? facilityModel, String? primaryType, String? primaryId, StockModel? stockModel})
const
factory

Properties

copyWith → $RecordStockStateCopyWith<RecordStockState>
no setterinherited
dateOfRecord DateTime?
no setterinherited
entryType StockRecordEntryType
no setterinherited
facilityModel → FacilityModel?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
primaryId String?
no setterinherited
primaryType String?
no setterinherited
projectId String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stockModel StockModel?
no setterinherited

Methods

map<TResult extends Object?>({required TResult create(RecordStockCreateState value), required TResult persisted(RecordStockPersistedState value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? create(RecordStockCreateState value)?, TResult? persisted(RecordStockPersistedState value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult create(RecordStockCreateState value)?, TResult persisted(RecordStockPersistedState value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult create(StockRecordEntryType entryType, bool loading, String projectId, DateTime? dateOfRecord, String? primaryType, String? primaryId, FacilityModel? facilityModel, StockModel? stockModel)?, TResult persisted(StockRecordEntryType entryType, String projectId, DateTime? dateOfRecord, FacilityModel? facilityModel, String? primaryType, String? primaryId, StockModel? stockModel)?, 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(StockRecordEntryType entryType, bool loading, String projectId, DateTime? dateOfRecord, String? primaryType, String? primaryId, FacilityModel? facilityModel, StockModel? stockModel), required TResult persisted(StockRecordEntryType entryType, String projectId, DateTime? dateOfRecord, FacilityModel? facilityModel, String? primaryType, String? primaryId, StockModel? stockModel)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? create(StockRecordEntryType entryType, bool loading, String projectId, DateTime? dateOfRecord, String? primaryType, String? primaryId, FacilityModel? facilityModel, StockModel? stockModel)?, TResult? persisted(StockRecordEntryType entryType, String projectId, DateTime? dateOfRecord, FacilityModel? facilityModel, String? primaryType, String? primaryId, StockModel? stockModel)?}) → TResult?
inherited

Operators

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