ShortcodeTemplate class

ShortcodeTemplate is a single file inside templates/shortcodes folder. Shortcode template has a name which equals file name and a template which is this file's content.

Constructors

ShortcodeTemplate({required String name, required String template})
const

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render({required CustomEnvironment environment, required Map<String, dynamic> values}) String
Render shortcode template using values with Jinja.
toString() String
A string representation of this object.
override

Operators

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