when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult loadComplaints(
    1. List<PgrServiceModel>? updatedModels,
    2. String createdByUserId
    ),
  2. required TResult sortComplaints(
    1. String sortOrder
    ),
  3. required TResult filterComplaints(
    1. String? complaintAssignedTo,
    2. String? currentUserName,
    3. String? complaintTypeCode,
    4. String? locality,
    5. String createdByUserId,
    6. List<PgrServiceApplicationStatus>? complaintStatus,
    ),
  4. required TResult searchComplaints(
    1. String? complaintNumber,
    2. String? mobileNumber,
    3. String createdByUserId
    ),
  5. required TResult saveComplaints(
    1. List<ComplaintsInboxItem>? complaintInboxItems
    ),
  6. required TResult addItem(
    1. 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;