ClipCut class final

A shape cut out of a node at a point of its box (Decoration.clipCuts), in the node's own pixels whatever its size, so a ticket's notch stays a round 12 px however the ticket grows: a circle of radius centered at center, or SVG path data d with its origin there.

Annotations
  • @immutable

Constructors

ClipCut({Alignment center = Alignment.center, double? radius, String? d})
const

Properties

center → Alignment
The point of the box the cut sits at (an alignment: "centerLeft", [1, 0]): a circle's center, a path's origin.
final
d → String?
SVG path data in pixels, its (0, 0) at center (with radius, both).
final
hashCode → int
The hash code for this object.
no setteroverride
radius → double?
A circle of this radius in pixels.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Object? json) → ClipCut?