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