when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult saveComplaintType(),
- required TResult saveAddress(
- PgrAddressModel addressModel
- required TResult saveComplaintDetails(
- ComplaintsDetailsModel complaintsDetailsModel,
- BoundaryModel boundaryModel
- required TResult submitComplaint(
- 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;