ChamferClipper class
A CustomClipper that clips a child to the signature Auris notched silhouette — the asymmetric 45° chamfer cutting only the top-left and bottom-right corners (§spec:design-tokens "Shape").
This is the widget-layer counterpart of AurisChamferBorder: both build
their path from the shared aurisChamferPath, so a clipped child and the
drawn border trace the identical polygon — the chamfered fill never bleeds
past the chamfered outline. AurisContainer uses it to clip its child to
the same corners its border paints.
The cut is the length of each 45° leg in logical pixels, clamped per-size to half the shorter side so a large cut on a small box degrades gracefully (matching the border's clamp rule).
- Inheritance
-
- Object
- Listenable
- CustomClipper<
Path> - ChamferClipper
Constructors
- ChamferClipper({double cut = 0})
-
Creates a chamfer clipper cutting the top-left and bottom-right corners by
cut.const
Properties
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be notified when it is time to reclip.
inherited
-
getApproximateClipRect(
Size size) → Rect -
Returns an approximation of the clip returned by getClip, as
an axis-aligned Rect. This is used by the semantics layer to
determine whether widgets should be excluded.
inherited
-
getClip(
Size size) → Path -
Returns a description of the clip given that the render object being
clipped is of the given size.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies when it is time to reclip.
inherited
-
shouldReclip(
covariant ChamferClipper oldClipper) → bool -
Called whenever a new instance of the custom clipper delegate class is
provided to the clip object, or any time that a new clip object is created
with a new instance of the custom clipper delegate class (which amounts to
the same thing, because the latter is implemented in terms of the former).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited