ShortcodeTemplate class Null safety

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. [...]
read-only, inherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
template String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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