ComicBurstFit class

The lines of a burst fitted into its star: laid out once, scaled down whole until no point along any line's edges stands within clear of the star's edge. So a number of any length fits, and never clips.

Constructors

ComicBurstFit(Path star, Offset centre, List<(String, TextStyle, double)> rows, TextDirection dir, {double clear = 0})
Creates a ComicBurstFit.
factory

Properties

clear → double
How far inside the star's edge the words keep: the outline's inner half and a hair of the fill.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
height: the allocated height in logical pixels. scale: the scale applied to the fitted drawing.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
height: the allocated height in logical pixels. scale: the scale applied to the fitted drawing.
final

Methods

dispose() → void
Releases the laid-out text painters.
holds(Path star, Offset centre, double k) → bool
Whether every line's ink, at k, stands inside star, clear in from its edge.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Offset centre) → void
Paints the fitted lines around centre on canvas.
toString() → String
A string representation of this object.
inherited

Operators

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