setCurrentAndNotify method

void setCurrentAndNotify(
  1. dynamic data
)

Implementation

void setCurrentAndNotify(data) {
  current = data;
  notifyListeners();
}