Widget class

A widget based on a HTML template. The name of the template should correspond to a template file in your server's web/templates directory. Set the custom values of the template by populating the values field. If values are set that aren't Strings, the toString method will be called on the value. The templates are loaded when the server starts. If you add new templates or modify existing templates, you will need to restart the server for them to take effect.

Inheritance

Constructors

Widget({required String name})
Creates a new Widget.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the template used by this Widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
template ↔ Template
The template used by this widget.
latefinal
values Map<String, dynamic>
Key/value pairs passed to the template. The values will be converted to strings using the toString method of the values.
getter/setter pair

Methods

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.
inherited