maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<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()?,
  4. 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;