RecordStockState class
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
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