when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required 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. required 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 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;