when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult saveComplaintType(
    1. String complaintType,
    2. String? otherComplaintDescription
    ),
  2. required TResult saveAddress(
    1. PgrAddressModel addressModel
    ),
  3. required TResult saveComplaintDetails(
    1. ComplaintsDetailsModel complaintsDetailsModel,
    2. BoundaryModel boundaryModel
    ),
  4. required TResult submitComplaint(
    1. String userId
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          String complaintType, String? otherComplaintDescription)
      saveComplaintType,
  required TResult Function(PgrAddressModel addressModel) saveAddress,
  required TResult Function(ComplaintsDetailsModel complaintsDetailsModel,
          BoundaryModel boundaryModel)
      saveComplaintDetails,
  required TResult Function(String userId) submitComplaint,
}) =>
    throw _privateConstructorUsedError;