StubbleContext class

Constructors

StubbleContext([Map data, Map<String, dynamic Function(List, Function)> helpers, Map<String, dynamic> options, dynamic fn(String)])

Properties

data Map
data getter
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
helpers Map<String, dynamic Function(List, Function)>
helpers getter
read-only
line int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
symbol int
read / write

Methods

call(String helper, List attributes, Function fn) String
calling helper with given name? attributes and parsing function
callable(String helper) bool
checks if helper with given name can be called
compile(String template) Function
returns new compile function based on given template
get(String path) → dynamic
returns a value from context.data by given path
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
opt(dynamic name) → dynamic
returns an value of given option or null, if not set
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited