when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult create(
    1. bool loading,
    2. String? complaintType,
    3. String? otherComplaintTypeDescription,
    4. PgrAddressModel? addressModel,
    5. ComplaintsDetailsModel? complaintsDetailsModel,
    ),
  2. required TResult view(
    1. String complaintType,
    2. PgrAddressModel addressModel,
    3. ComplaintsDetailsModel complaintsDetailsModel
    ),
  3. required TResult persisted(),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          bool loading,
          String? complaintType,
          String? otherComplaintTypeDescription,
          PgrAddressModel? addressModel,
          ComplaintsDetailsModel? complaintsDetailsModel)
      create,
  required TResult Function(
          String complaintType,
          PgrAddressModel addressModel,
          ComplaintsDetailsModel complaintsDetailsModel)
      view,
  required TResult Function() persisted,
}) =>
    throw _privateConstructorUsedError;