clipBehavior property Null safety

Clip clipBehavior

Controls how to clip.

Must not be set to null or Clip.none.

Defaults to Clip.hardEdge.

Implementation

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

Implementation

set clipBehavior(Clip value) {
  assert(value != null);
  assert(value != Clip.none);
  if (value != _clipBehavior) {
    _clipBehavior = value;
    markNeedsAddToScene();
  }
}