whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? saveComplaintType(
    1. String complaintType,
    2. String? otherComplaintDescription
    )?,
  2. TResult? saveAddress(
    1. PgrAddressModel addressModel
    )?,
  3. TResult? saveComplaintDetails(
    1. ComplaintsDetailsModel complaintsDetailsModel,
    2. BoundaryModel boundaryModel
    )?,
  4. TResult? submitComplaint(
    1. String userId
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(String complaintType, String? otherComplaintDescription)?
      saveComplaintType,
  TResult? Function(PgrAddressModel addressModel)? saveAddress,
  TResult? Function(ComplaintsDetailsModel complaintsDetailsModel,
          BoundaryModel boundaryModel)?
      saveComplaintDetails,
  TResult? Function(String userId)? submitComplaint,
}) =>
    throw _privateConstructorUsedError;