closable property

bool get closable

Whether the window can be closed.

Implementation

bool get closable => value.closable;
set closable (bool value)

Sets whether the window can be closed.

When false, the close button is disabled or hidden.

Implementation

set closable(bool value) {
  if (value == closable) return;
  this.value = this.value.copyWith(closable: () => value);
}