ShapeBorderClipper class
A CustomClipper that clips to the outer path of a ShapeBorder.
- Inheritance
- Object
- CustomClipper<
Path> - ShapeBorderClipper
Constructors
- ShapeBorderClipper({@required ShapeBorder shape, TextDirection textDirection })
-
Creates a ShapeBorder clipper. [...]
const
Properties
- shape → ShapeBorder
-
The shape border whose outer path this clipper clips to.
final
- textDirection → TextDirection
-
The text direction to use for getting the outer path for shape. [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
getClip(
Size size) → Path -
Returns the outer path of shape as the clip.
override
-
shouldReclip(
covariant CustomClipper< Path> 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 painter delegate class (which amounts to
the same thing, because the latter is implemented in terms of the former). [...]
override
-
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited