onFocus method

void onFocus()

Called when the widget receives focus.

Implementation

void onFocus() {
  _focused = true;
}