removeLast method

T removeLast({
  1. bool doNotifyListeners = true,
})

Removes the last value from the list.

Implementation

T removeLast({
  bool doNotifyListeners = true,
}) {
  final last = _value.last;
  _value.remove(last);
  if (doNotifyListeners) {
    notifyListeners();
  }
  return last;
}