closeButton property

bool closeButton
final

Dialog has a Close icon button on top toolbar to cancel and close the color picker dialog.

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

Defaults to false.

Implementation

final bool closeButton;