when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult empty(),
  2. required TResult isloading(),
  3. required TResult multichecklistChanged(
    1. String value,
    2. bool submitTriggered
    ),
  4. required TResult serviceCreate(
    1. ServiceModel serviceList,
    2. ServiceModel? selectedService,
    3. bool loading,
    4. bool isEditing,
    ),
  5. required TResult serviceSearch(
    1. List<ServiceModel> serviceList,
    2. ServiceModel? selectedService,
    3. bool loading
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() empty,
  required TResult Function() isloading,
  required TResult Function(String value, bool submitTriggered)
      multichecklistChanged,
  required TResult Function(ServiceModel serviceList,
          ServiceModel? selectedService, bool loading, bool isEditing)
      serviceCreate,
  required TResult Function(List<ServiceModel> serviceList,
          ServiceModel? selectedService, bool loading)
      serviceSearch,
}) =>
    throw _privateConstructorUsedError;