whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult? loadComplaints(
- List<
PgrServiceModel> ? updatedModels, - String createdByUserId
- List<
- TResult? sortComplaints(
- String sortOrder
- TResult? filterComplaints()?,
- TResult? searchComplaints()?,
- TResult? saveComplaints(
- List<
ComplaintsInboxItem> ? complaintInboxItems
- List<
- TResult? addItem(
- 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;