BaseController class abstract

Nylo's base controller class

Constructors

BaseController({BuildContext? context, NyRequest? request, String? state = "/"})

Properties

context BuildContext?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
request NyRequest?
getter/setter pair
routeGuards List<RouteGuard>
List of route guards
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
getter/setter pair

Methods

construct(BuildContext context) → dynamic
Initialize your controller with this method. It contains same BuildContext as the NyStatefulWidget.
data<T>({dynamic defaultValue}) → T?
Returns any data passed through a Navigator or routeTo method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryParameters({String? key}) → dynamic
Returns any query parameters passed in a route e.g. /my-page?hello=world Result {"hello": "world"}
toString() String
A string representation of this object.
inherited

Operators

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