FormatOptions class

Options for controlling formatter behavior.

Use these options to customize how Markdown and YAML files are formatted. All options have sensible defaults matching Prettier's behavior.

Constructors

FormatOptions({int printWidth = 80, int tabWidth = 2, ProseWrap proseWrap = ProseWrap.preserve, UnorderedListStyle ulStyle = UnorderedListStyle.asterisk})
Creates formatting options with the specified values.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
printWidth int
Maximum line width for wrapping.
final
proseWrap ProseWrap
How to handle prose wrapping in paragraphs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabWidth int
Number of spaces per indentation level.
final
ulStyle UnorderedListStyle
Style for unordered list bullets.
final

Methods

copyWith({int? printWidth, int? tabWidth, ProseWrap? proseWrap, UnorderedListStyle? ulStyle}) FormatOptions
Creates a copy with the specified fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

defaults → const FormatOptions
Default formatting options matching Prettier defaults.