FoldOptions class

Options controlling how foldText hard-wraps lines.

Grouped into a single object because folding needs more than three knobs while still honoring the project's parameter limit; callers tweak only the fields they care about and rely on the defaults for the rest.

Example:

const FoldOptions(width: 40);

Constructors

FoldOptions({int width = _kDefaultFoldWidth})
Creates fold options with an optional width (defaults to 78). Audited: 2026-06-12 11:26 EDT
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
width int
Maximum column width (inclusive) for each produced line, prefix included.
final

Methods

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