CountrySection constructor

CountrySection({
  1. required int startDistanceM,
  2. required String code,
  3. String name = '',
})

Creates a CountrySection.

API users should not create instances of this class directly.

Parameters

  • startDistanceM: Distance in meters from the route start where the country section begins.
  • code: The ISO 3166-1 alpha-3 country code.
  • name: The translated country name. Defaults to an empty string.

Implementation

CountrySection({
  required this.startDistanceM,
  required this.code,
  this.name = '',
});