WaView class
A base class for views in the web application.
The WaView class provides the core structure for rendering views and handling data within the application. It includes logic for rendering widgets and allows derived classes to customize how data is processed.
Example usage:
class MyCustomView extends WaView {
MyCustomView({
required WebRequest rq,
required String widget,
Map<String, Object?> params = const {},
}) : super(rq: rq, widget: widget, params: params);
@override
Future<Map<String, Object?>> renderData() async {
// Custom data processing logic here.
}
}
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
params
↔ Map<
String, Object?> -
A map containing parameters that can be passed to the view for rendering.
getter/setter pair
- rq ↔ WebRequest
-
The WebRequest object representing the current request.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widget ↔ String
-
The path to the widget or view template.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
{dynamic toData = false}) → Future< Object> - Renders the view.
-
renderData(
) → Future< Map< String, Object?> > - Processes and returns the data for the view.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited