IssueClipper class
Four outlines that the example used to draw next to the bubbles to show https://github.com/flutter/flutter/issues/37779.
Not part of the bubble. On Skia, a PhysicalShape with a translucent color casts a broken shadow under outlines 2 and 3; the defect is tracked as https://github.com/flutter/flutter/issues/194448.
- Inheritance
-
- Object
- Listenable
- CustomClipper<
Path> - IssueClipper
- Annotations
-
- @Deprecated('Not part of the bubble, and the example no longer draws it. ' 'Will be removed in the next major version.')
Constructors
- IssueClipper(int test)
-
Creates the outline number
test, from 0 to 3.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- test → int
-
Which outline to draw: 0 — two contours drawn clockwise, 1 — the second
one counterclockwise, which makes it a hole; 2 and 3 — a rounded and a
square rectangle joined with a square by Path.combine.
final
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 IssueClipper 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