okButton property

bool okButton
final

Dialog has an OK icon button on top toolbar to select active color and close the color picker dialog.

This will pop the current top route on navigation stack and return true. Only enable this toolbar button when you are using the picker in a dialog.

Defaults to false.

Implementation

final bool okButton;