Line data Source code
1 : // TODO: Do we need this? Can we just use a string? 2 : // Will this play a part in state restoration? 3 : class RouteData { 4 10 : const RouteData(this.path); 5 : 6 : /// The pattern used to parse the route string. e.g. "/users/:id" 7 : final String path; 8 : 9 1 : @override 10 4 : bool operator ==(Object other) => other is RouteData && path == other.path; 11 : 12 1 : @override 13 2 : int get hashCode => path.hashCode; 14 : 15 1 : @override 16 1 : String toString() => path; 17 : }