whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? create(
    1. bool loading,
    2. String? complaintType,
    3. String? otherComplaintTypeDescription,
    4. PgrAddressModel? addressModel,
    5. ComplaintsDetailsModel? complaintsDetailsModel,
    )?,
  2. TResult? view(
    1. String complaintType,
    2. PgrAddressModel addressModel,
    3. ComplaintsDetailsModel complaintsDetailsModel
    )?,
  3. 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;