RegularRoute class

RegularRoute object is used to represent a route in the route map which is not the home destination


RegularRoute({@required String path, @required Widget widget, Iterable<RegularRoute> children})
The only two required parameters are path and widget while children defaults to EmptyIterable anyways


children Iterable<RegularRoute>
Iterable object of child routes that the given route has access to
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
path String
String representation of a route, should include a slash, so for example when setting the path you would say path: '/my_path'
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
widget Widget
Widget that the route is inflating, preferably should be some widget that extends StatelessWidget or StatefulWidget


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toNode() Node<Widget, String>
Convert the RegularRoute into Node which is important because the route generation operates with general tree data structure which has nodes, but the method should not be called by the developer unless you really want to have a Node object, for which there's no real reason, but hey, you do you...
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]