Line class

This helper class models a line as it has been read from the source file, providing and hiding some useful tools needed to manage properties parsing.

Constructors

Line(List<int> bytes)
Create a new line from an input list of bytes representing a line from the file (without NL).
Line.fromKeyValue(String key, String value)
Line.fromString(String line)

Properties

hashCode int
The hash code for this object.
no setterinherited
key List<int>
Getter for the key contained in this property, if any.
no setter
keyString String
Get the key as a String.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value List<int>
Getter for the value contained in this property, if any.
getter/setter pair
valueLines List<List<int>>
Getter for the lines composing the value of this property, if any.
no setter
valueString String
Get the value as a String.
no setter

Methods

addValueLine(List<int> valueline) bool
Add a value line to the value of this property.
isComment() bool
This line is a comment line?
isMultiLineProperty() bool
This line is a property line having a multi line value?
isProperty() bool
This line is a property line?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
The line to string.
override

Operators

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