Message class final

A regular Fluent message: id = value, optionally with attributes and a leading comment.

hello = Hello, World!
greet = Hi, { $name }
    .label = Greeting
    .accesskey = G
Inheritance

Constructors

Message({required Identifier id, Pattern? value, List<Attribute> attributes = const [], Comment? comment, Span? span})
Bundles the message's id, optional value, attributes, and attached comment.
const

Properties

attributes List<Attribute>
The message's attributes, in source order.
final
comment Comment?
The # comment directly above the message, when present.
final
hashCode int
The hash code for this object.
no setterinherited
id Identifier
The message id.
final
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
value Pattern?
The value pattern; null for attribute-only messages.
final

Methods

clone() Message
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