Button.canShrink

Get canShrink property.

  1. bool canShrink [@property getter]
    class Button
    @property
    bool
    canShrink
    ()
  2. bool canShrink [@property setter]

Return Value

Type: bool

Whether the size of the button can be made smaller than the natural size of its contents.

For text buttons, setting this property will allow ellipsizing the label.

If the contents of a button are an icon or a custom widget, setting this property has no effect.