maybeWhen<TResult extends Object?> method
TResult
maybeWhen<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
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<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,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;