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