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