whenOrNull<TResult extends Object?> method
TResult?
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,
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;