SimpleRoute class final

Simple implementation of RestRoute

Inheritance

Constructors

SimpleRoute(String _routeName, [String _routePath = ''])
const

Properties

basePath String
Returns the base route name
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
path String
Returns the full path including route name and path
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(dynamic id) SimpleRoute
Convenient method for withId
inherited
copyWith(String newPath) SimpleRoute
Abstract method that must be implemented by subclasses to return the proper concrete type
override
id(dynamic id) String
Minimal method for retrieving a specific resource by id
inherited
join(String routeName) String
Joins the current path with a subpath
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withId(dynamic id) SimpleRoute
Creates a new instance with the given id
inherited
withQueryParams(Map<String, dynamic> params) String
Adds query parameters to the path
inherited

Operators

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