focus method

void focus({
  1. bool isFocused = true,
})

Sets the focus property of this node.

notifyListeners is called to notify all registered listeners.

Implementation

void focus({bool isFocused = true}) {
  _isFocused = isFocused;
  notifyListeners();
}