CountrySection class Route
Represents the portion of a route that runs through a single country.
Sections are ordered from route start to route end and cover the whole route, so a section ends where the next one starts and the last one ends at the route length. This is why only startDistanceM is provided.
Obtain country sections from a computed route via RouteBase.countrySections or from a specific segment via RouteSegmentBase.countrySections.
API users should not create instances of this class directly.
See also:
- RouteBase.countrySections - Retrieve country sections for a route.
- RouteSegmentBase.countrySections - Retrieve country sections for a segment.
- SdkSettings.language - Controls the language name is translated to.
Constructors
- CountrySection({required int startDistanceM, required String code, String name = ''})
- Creates a CountrySection.
Properties
- code ↔ String
-
The ISO 3166-1 alpha-3 country code.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- name ↔ String
-
The country name, translated according to SdkSettings.language.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDistanceM ↔ int
-
Distance (meters) from the route start where this country section begins.
getter/setter pair
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 ==(
covariant CountrySection other) → bool -
The equality operator.
override