Widget.canFocus

Get canFocus property.

  1. bool canFocus [@property getter]
    class Widget
    @property
    bool
    canFocus
    ()
  2. bool canFocus [@property setter]

Return Value

Type: bool

Whether the widget or any of its descendents can accept the input focus.

This property is meant to be set by widget implementations, typically in their instance init function.