DartFormatter class
Dart source code formatter.
Constructors
Properties
-
experimentFlags
→ List<
String> -
Flags to enable experimental language features.
final
-
fixes
→ Set<
StyleFix> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indent → int
-
The number of characters of indentation to prefix the output lines with.
final
- lineEnding ↔ String?
-
The string that newlines should use.
getter/setter pair
- pageWidth → int
-
The number of characters allowed in a single line.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
format(
String source, {Object? uri}) → String -
Formats the given
source
string containing an entire Dart compilation unit. -
formatSource(
SourceCode source) → SourceCode -
Formats the given
source
. -
formatStatement(
String source) → String -
Formats the given
source
string containing a single Dart statement. -
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