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
no setter
hashCode int
The hash code for this object.
no setterinherited
helpers Map<String, dynamic Function(List, Function)>?
helpers getter
no setter
line int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol int
getter/setter pair

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 nonexistent method or property is accessed.
inherited
opt(dynamic name) → dynamic
returns an value of given option or null, if not set
toString() String
A string representation of this object.
inherited

Operators

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