NyRequest class

Base class to handle requests

Constructors

NyRequest({String? currentRoute, NyArgument? args, NyQueryParameters? queryParameters})

Properties

currentRoute String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

data({String? key}) → dynamic
Returns data passed as an argument to a page e.g. routeTo("/my-page", data: {"hello": "world"})
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryParameters({String? key}) → dynamic
Returns the queryParameters passed to a page e.g. /my-page?hello=world
setData(dynamic data) → dynamic
Write data to controller
toString() String
A string representation of this object.
inherited

Operators

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