TomlParseResult class
The result of parsing TOML content, supporting partial success.
When parsing fully succeeds, data contains the complete map and errors is empty. When parsing partially succeeds, data contains whatever was parseable and errors lists the problems. When parsing completely fails, data is null.
Constructors
-
TomlParseResult({required Map<
String, dynamic> ? data, required List<TomlParseError> errors, required String rawContent}) -
Creates a parse result.
const
Properties
-
data
→ Map<
String, dynamic> ? -
The parsed TOML data, or null if parsing failed entirely.
final
-
errors
→ List<
TomlParseError> -
Parse errors encountered. Empty on clean parse.
final
- hasErrors → bool
-
Whether any errors were encountered.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPartial → bool
-
Whether some data was parsed despite errors.
no setter
- rawContent → String
-
The original TOML source text (empty for TomlView.fromMap).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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