whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? loadComplaints(
    1. List<PgrServiceModel>? updatedModels,
    2. String createdByUserId
    )?,
  2. TResult? sortComplaints(
    1. String sortOrder
    )?,
  3. TResult? filterComplaints(
    1. String? complaintAssignedTo,
    2. String? currentUserName,
    3. String? complaintTypeCode,
    4. String? locality,
    5. String createdByUserId,
    6. List<PgrServiceApplicationStatus>? complaintStatus,
    )?,
  4. TResult? searchComplaints(
    1. String? complaintNumber,
    2. String? mobileNumber,
    3. String createdByUserId
    )?,
  5. TResult? saveComplaints(
    1. List<ComplaintsInboxItem>? complaintInboxItems
    )?,
  6. TResult? addItem(
    1. ComplaintsInboxItem? complaintInboxItem
    )?,
})
inherited

Implementation

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