Resource class final

A complete parsed .ftl file.

Holds every entry from the source: messages, terms, standalone comments, and any junk (entries that failed to parse). Keeping junk preserves recoverability — one bad entry doesn't break the whole resource.

Inheritance

Constructors

Resource(List<Entry> body, {Span? span})
Wraps the parsed body.
const

Properties

body List<Entry>
Every top-level entry — messages, terms, comments, junk — in source order.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span Span?
Source range this node covers; null when spans were off.
final

Methods

clone() Resource
Deep clone of this node.
override
equals(FluentNode other, {bool ignoreSpans = true}) bool
Structural equality.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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