changeActiveId method

void changeActiveId({
  1. required int newId,
})

Assigns the required argument newId to id and calls notifyListeners

Implementation

void changeActiveId({required int newId}) /*async*/ {
  id = newId;
  notifyListeners();
}