Template class

Constructors

Template({required String value, List<ExpressionSyntax>? syntax})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

evaluate({Map context = const {}, List<MemberAccessor> memberAccessors = const []}) → dynamic
Evaluates the template into a dynamic result. This only supports a single template expression and will throw an exception if there is more than one.
evaluateAsync({Map context = const {}, List<MemberAccessor> memberAccessors = const []}) Future
Evaluates the template into a dynamic result asynchronously. This only supports a single template expression and will throw an exception if there is more than one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process({Map context = const {}, List<MemberAccessor> memberAccessors = const []}) String
Evaluates the template into a string result. The template may have multiple expressions which will be concatenated into the returned value.
processAsync({Map context = const {}, List<MemberAccessor> memberAccessors = const []}) Future<String>
Evaluates the template into a string result asynchronously. The template may have multiple expressions which will be concatenated into the returned value.
toString() String
A string representation of this object.
inherited

Operators

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