clip method

XuBox clip(
  1. Clip clip

Defaults to Clip.none. Must be Clip.none if decoration is null.

If a clip is to be applied, the Decoration.getClipPath method for the provided decoration must return a clip path. (This is not supported by all decorations; the default implementation of that method throws an UnsupportedError.)


XuBox clip(Clip clip) => this.._clip = clip;