Formatter class

Formatter takes in a list of tokens and returns a string formatted per the settings.

Constructors

Formatter({String indenter = ' ', String linebreaker = '\r\n', String spacer = ' '})
indenter specifies the type of indentation used. Default 2 spaces. linebreaker is added at the end of every new line. Default \r\n. spacer is the character(s) used between

Properties

hashCode int
The hash code for this object.
no setterinherited
indenter String
getter/setter pair
linebreaker String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacer String
getter/setter pair

Methods

format(List<Token> tokens) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stringFor(Token t) String
toString() String
A string representation of this object.
inherited

Operators

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