LineBreaker class abstract

Implementers

Constructors

LineBreaker()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

breakChunk(PreparedLineBreakData data, int chunkIndex, double maxWidth, {int? maxLines}) List<LineRange>
Break one hard-break-delimited chunk into consecutive, gapless LineRanges in cursor order.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

greedy → const LineBreaker
The built-in first-fit walker (Flutter-parity breaks; the default).
knuthPlass → const LineBreaker
Knuth–Plass paragraph breaking. LTR-only in v1 — RTL / mixed-direction paragraphs should use greedy (the default). Passing KP on an RTL paragraph still runs, but fitness does not model visual order.