Widget class

Deprecated alias for TemplateWidget. The base Widget class has been renamed to TemplateWidget for clarity.

Inheritance
Annotations
  • @Deprecated('Use TemplateWidget instead. ' 'Widget has been renamed to TemplateWidget to better distinguish it from the base WebWidget class. ' 'This class will be removed in a future version.')

Constructors

Widget({required String name, Map<String, dynamic>? values})
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 TemplateWidget. Can be a simple name (e.g., 'default') or a path (e.g., 'admin/dashboard')
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
template ↔ Template
The template used by this TemplateWidget.
latefinalinherited
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 pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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