StringTemplate class

Represents a part of a Translation that can be replaced by a value at runtime.

It follows the pattern {{key}}.

Constructors

StringTemplate(int startIndex, int endIndex, String value, String key, String type, String? formatting)
const

Properties

endIndex int
final
formatting String?
A formatting function for the printing the value
final
hashCode int
The hash code for this object.
no setteroverride
key String
The original key.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startIndex int
final
type String
The original type in the label
final
value String
The template string value
final

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 o) bool
The equality operator.
override

Static Properties

regExp RegExp
final

Static Methods

parse(String value) List<StringTemplate>
Parse the given value and extract all templated values.