LayoutSettingsIndent class

Indentation settings of a layout's settings block.

All values default to false: applying the settings is opt-in, indentation is not applied automatically, and the first paragraph after a section heading keeps its default indentation unless configured otherwise.

Constructors

LayoutSettingsIndent({required bool applyChanges, required bool indentParagraph, required bool indentJustAfterFirstParagraph})
Builds indentation settings with explicit values.
LayoutSettingsIndent.common()
Defaults: nothing is applied, nothing is indented.
factory
LayoutSettingsIndent.fromJson(String source)
Parses the settings from their JSON string.
factory
LayoutSettingsIndent.fromMap(Map<String, dynamic> map)
Parses the settings from their on-disk JSON map (tolerant of missing fields).
factory

Properties

applyChanges bool
Whether the layout changes are applied to already-written content.
final
hashCode int
The hash code for this object.
no setteroverride
indentJustAfterFirstParagraph bool
Whether the first paragraph after the title is also indented (only meaningful when indentParagraph is true).
final
indentParagraph bool
Whether paragraphs are automatically indented.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? applyChanges, bool? indentParagraph, bool? indentAfterFirst}) LayoutSettingsIndent
Returns a copy with the given values replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Serializes the settings to a JSON string.
toMap() Map<String, dynamic>
Serializes the settings to their on-disk JSON map (snake_case keys).
toString() String
A string representation of this object.
override

Operators

operator ==(covariant LayoutSettingsIndent other) bool
The equality operator.
override