when<TResult extends Object?> method
TResult
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,
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
StockRecordEntryType entryType,
bool loading,
String projectId,
DateTime? dateOfRecord,
String? primaryType,
String? primaryId,
FacilityModel? facilityModel,
StockModel? stockModel)
create,
required TResult Function(
StockRecordEntryType entryType,
String projectId,
DateTime? dateOfRecord,
FacilityModel? facilityModel,
String? primaryType,
String? primaryId,
StockModel? stockModel)
persisted,
}) =>
throw _privateConstructorUsedError;