focus method

  1. @override
void focus()
override

Item/component focuses itself

Implementation

@override
void focus() {
  if (disabled) return;

  // Set to true so that the focus indicator is rendered.
  _isKeyboardEvent = true;

  _root.focus();
}