updateTank method

void updateTank(
  1. bool? input
)

Updates preferTankControls.

Implementation

void updateTank(bool? input) {  // ignore: avoid_positional_boolean_parameters
  if (input == null) return;
  preferTankControls = input;
  notifyListeners();
}