SlugRoute class

Declarative slug route definition — inspired by go_router's GoRoute.

Each entry maps a content type to its Firestore resolution function and navigation target. Routes are evaluated by priority (lower = higher).

Constructors

SlugRoute({required String type, required int priority, required Future<SlugMatch?> resolve(String slug)})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
priority int
final
resolve Future<SlugMatch?> Function(String slug)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
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