ComicStrokes class

The weight of Comic's ink, in two steps: standard, the look's own contours part by part, and bold, rims at 4 and a focused part's print at 5. Each step names the widths every styled part's rims and rules read, in logical pixels: hairline for the rules inside a part (the act plate's inner rule, a segment's, a card's second line), regular for a part's rim, heavy for a focused part's print and a chosen part's rim; null keeps the look's own ink contours.

final theme = ComicThemeData.offset().copyWith(strokes: ComicStrokes.bold);
Mixed-in types
Annotations

Constructors

ComicStrokes({double? hairline, double? regular, double? heavy})
The named widths; null keeps the look's.
const

Properties

hairline → double?
The rules inside a part.
final
hashCode → int
The hash code for this object.
no setteroverride
heavy → double?
A focused part's print and a chosen part's rim.
final
isEmpty → bool
True when every width is null.
no setter
regular → double?
A part's rim.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? hairline, double? regular, double? heavy}) → ComicStrokes
This with the named widths changed.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringShort() → String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

lerp(ComicStrokes a, ComicStrokes b, double t) → ComicStrokes
Between a and b; a null width counts as the look's.

Constants

bold → const ComicStrokes
Rims at 4 and a focused part's print at 5: a bolder line for a brand that wants it.
look → const ComicStrokes
The look's widths as one even line: 2, 2.5 and 3.
standard → const ComicStrokes
The look's own ink: each part's contour as it was drawn, with heavier focus marks. A theme's default.