updateBadApple method

void updateBadApple(
  1. bool input
)

Updates the value of badApple.

Implementation

void updateBadApple(bool input) {  // ignore: avoid_positional_boolean_parameters
  badApple = input;
  notifyListeners();
}