RouteParser class

Representation of a route that can then be parsed and matched against other types

Constructors

RouteParser(String path)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<String>
no setter

Methods

match(String path, {bool matchChildren = false}) bool
matches a path against this route.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String path, {bool matchChildren = false}) ParsingResult
parses path against this route
reverse(Map<String, String> params) String
adds params to a route
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

sanitize(String path) String
sanitize path by removing leading and trailing spaces and backslashes