RegExpParamSegment<T> class Null safety

A Segment for path segments that should match a regular expression, where you need the segment itself, too.

See also:

Inheritance

Constructors

RegExpParamSegment({required RegExpParamParser parser, RouteBuilder<T>? create, List<Segment<T>> children = const [], RouteBuilder<T>? createError})
Creates a Segment that matches a path segment against a regular expression and adds it to the ParseContext. [...]

Properties

children Iterable<Segment<T>>
read-only, inherited
create RouteBuilder<T>?
Creates an instance of T, called when the Segment that owns this callback is routed to.
final, inherited
createError RouteBuilder<T>?
If Segment.parse cannot find a matching route the bottom most createError is called instead. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
parser SegmentParser
The parser that handles whether this Segment matches a route.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
parse(ParseContext<T> context, Iterable<String> segments, RouteBuilder<T> createError) Result<T, T>?
Returns a Result<T, T>? where null means this doesn't match the current path segment, Result.ok means a match was found and Result.err means an error was encountered trying to parse the path segments. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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