RouteStack constructor
- Iterable<
RouteLocation> locations
Implementation
RouteStack(Iterable<RouteLocation> locations)
: locations = List.unmodifiable(locations) {
if (this.locations.isEmpty) {
throw ArgumentError('A route stack must not be empty');
}
}