Shortcode class

Shortcode is a single instance/usage of a shortcode inside Markdown file. Each shortcode has a name and zero or more arguments.

Shortcode can be either be with or without body.

Example of a shortcode without body.

{{< inline x=123 />}}

Example of a shortcode with body. Body will be set as a body argument.

{{< block x=123 >}}
  This is a block body
{{< /block >}}

Constructors

Shortcode.block({required String name, required List<Argument> arguments, required String body})
Shortcode.inline({required String name, required List<Argument> arguments})

Properties

arguments List<Argument>
final
hashCode int
The hash code for this object.
no setteroverride
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getValues() Map<String, Object?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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