isVisible property

bool get isVisible

Determines whether the widget is visible.

The widget is visible if the background color picker is selected, and the widget is not in text input mode or in action.

Implementation

bool get isVisible =>
    isBackgroundColorPickerSelected && !isTextInput && !inAction;