PageArgsSchema<A extends PageArgs, C, W> class

What a generated *Args class knows about its page, bundled for routers and tools.

The generator emits one as static const schema. C and W are the build context and widget types of the UI framework, which keeps this package free of Flutter.

Constructors

PageArgsSchema({required A? tryParse(Map<String, String> arguments), required W builder(C context, {required Map<String, String> arguments, W? notFoundScreen}), required List<PageArgSpec> argSpecs})
Bundles the generated members of an *Args class.
const

Properties

argSpecs List<PageArgSpec>
Every argument tryParse reads.
final
builder → W Function(C context, {required Map<String, String> arguments, W? notFoundScreen})
Builds the page from route arguments, or notFoundScreen when tryParse fails.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tryParse → A? Function(Map<String, String> arguments)
Parses route arguments, returning null when a required one is missing or malformed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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