clipBehavior property

Clip clipBehavior

The content will be clipped (or not) according to this option.

See the enum Clip for details of all possible options and their common use cases.

In debug mode, if clipBehavior is Clip.none, and the child overflows its constraints, a warning will be printed on the console, and black and yellow striped areas will appear where the overflow occurs. For other values of clipBehavior, the contents are clipped accordingly.

Defaults to Clip.none.

Implementation

Clip get clipBehavior => _clipBehavior;
void clipBehavior=(Clip value)

Implementation

set clipBehavior(Clip value) {
  if (value != _clipBehavior) {
    _clipBehavior = value;
    markNeedsPaint();
    markNeedsSemanticsUpdate();
  }
}