shown method

Set<WidgetState> shown(
  1. Set<WidgetState> states
)

A row's states as the lead draws them: the focus ring only while the keys lead, the pointer's fill only while the pointer does.

Implementation

Set<WidgetState> shown(Set<WidgetState> states) {
  if (_keys) return states.difference(const {WidgetState.hovered});
  if (_moved) return states.difference(const {WidgetState.focused});
  return states.difference(const {WidgetState.hovered, WidgetState.focused});
}