selected property Null safety

bool? selected
final

If non-null indicates that this subtree represents something that can be in a selected or unselected state, and what its current state is.

The active tab in a tab bar for example is considered "selected", whereas all other tabs are unselected.

Implementation

final bool? selected;