appearance property

ShapeAppearance get appearance

The opacity and the corners.

Implementation

ShapeAppearance get appearance => _appearance;
set appearance (ShapeAppearance value)

Implementation

set appearance(ShapeAppearance value) {
  if (_appearance == value) return;
  final bool sameShape =
      value.cornerRadius == _appearance.cornerRadius && value.cornerSmoothing == _appearance.cornerSmoothing;
  _appearance = value;
  if (!sameShape) return _invalidatePlan();
  // Only the opacity or the blend: the shapes stay, so they redraw without rebuilding them.
  _fills = null;
  markNeedsPaint();
}