when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult loadComplaints(
- List<
PgrServiceModel> ? updatedModels, - String createdByUserId
- List<
- required TResult sortComplaints(
- String sortOrder
- required TResult filterComplaints(),
- required TResult searchComplaints(),
- required TResult saveComplaints(
- List<
ComplaintsInboxItem> ? complaintInboxItems
- List<
- required TResult addItem(
- ComplaintsInboxItem? complaintInboxItem
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
List<PgrServiceModel>? updatedModels, String createdByUserId)
loadComplaints,
required TResult Function(String sortOrder) sortComplaints,
required TResult Function(
String? complaintAssignedTo,
String? currentUserName,
String? complaintTypeCode,
String? locality,
String createdByUserId,
List<PgrServiceApplicationStatus>? complaintStatus)
filterComplaints,
required TResult Function(String? complaintNumber, String? mobileNumber,
String createdByUserId)
searchComplaints,
required TResult Function(List<ComplaintsInboxItem>? complaintInboxItems)
saveComplaints,
required TResult Function(ComplaintsInboxItem? complaintInboxItem) addItem,
}) =>
throw _privateConstructorUsedError;