clipPath property Null safety

Path? clipPath

The path to clip in the parent's coordinate system.

The scene must be explicitly recomposited after this property is changed (as described at Layer).

Implementation

Path? get clipPath => _clipPath;
void clipPath=(Path? value)

Implementation

set clipPath(Path? value) {
  if (value != _clipPath) {
    _clipPath = value;
    markNeedsAddToScene();
  }
}