dispose method

  1. @override
void dispose()
override

Releases everything this controller owns. The page that created the controller calls this from its own State.dispose(); a subclass that adds its own notifiers overrides this and ends with super.dispose().

Implementation

@override
void dispose() {
  titleFilterController.dispose();
  titleController.dispose();
  descriptionController.dispose();
  starsController.dispose();
  addressController.dispose();
  phoneController.dispose();
  emailController.dispose();
  checkInTimeController.dispose();
  checkOutTimeController.dispose();
  policiesController.dispose();
  rulesController.dispose();
  latitudeController.dispose();
  longitudeController.dispose();
  cancellationFreeHoursController.dispose();
  cancellationPenaltyNightsController.dispose();
  websiteController.dispose();
  whatsappController.dispose();
  instagramController.dispose();
  telegramController.dispose();
  howToGetThereController.dispose();
  photos.dispose();
  super.dispose();
}