whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult? create(
- bool loading,
- String? complaintType,
- String? otherComplaintTypeDescription,
- PgrAddressModel? addressModel,
- ComplaintsDetailsModel? complaintsDetailsModel,
- TResult? view(
- String complaintType,
- PgrAddressModel addressModel,
- ComplaintsDetailsModel complaintsDetailsModel
- TResult? persisted()?,
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(
bool loading,
String? complaintType,
String? otherComplaintTypeDescription,
PgrAddressModel? addressModel,
ComplaintsDetailsModel? complaintsDetailsModel)?
create,
TResult? Function(String complaintType, PgrAddressModel addressModel,
ComplaintsDetailsModel complaintsDetailsModel)?
view,
TResult? Function()? persisted,
}) =>
throw _privateConstructorUsedError;