whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? create(
    1. StockRecordEntryType entryType,
    2. bool loading,
    3. String projectId,
    4. DateTime? dateOfRecord,
    5. String? primaryType,
    6. String? primaryId,
    7. FacilityModel? facilityModel,
    8. StockModel? stockModel,
    )?,
  2. TResult? persisted(
    1. StockRecordEntryType entryType,
    2. String projectId,
    3. DateTime? dateOfRecord,
    4. FacilityModel? facilityModel,
    5. String? primaryType,
    6. String? primaryId,
    7. 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;