LineRegion class
A geographically line/locus region based off a list of coords and a radius
- Inheritance
-
- Object
- BaseRegion
- LineRegion
Constructors
-
LineRegion(List<
LatLng> line, double radius) -
Create a geographically line/locus region based off a list of coords and a
radius
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
line
→ List<
LatLng> -
The center line defined by a list of coordinates
final
- radius → double
-
The offset of the outline from the line in all directions (in meters)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
maybeWhen<
T> ({T rectangle(RectangleRegion rectangle)?, T circle(CircleRegion circle)?, T line(LineRegion line)?, T customPolygon(CustomPolygonRegion customPolygon)?, T multi(MultiRegion multi)?}) → T? -
Output a value of type
T
the type of this regioninherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDownloadable(
{required int minZoom, required int maxZoom, required TileLayer options, int start = 1, int? end, Crs crs = const Epsg3857()}) → DownloadableRegion< LineRegion> -
Generate the DownloadableRegion ready for bulk downloading
override
-
toOutline(
[int overlap = 1]) → Iterable< LatLng> -
Flattens the result of toOutlines - its documentation is quoted below
override
-
toOutlines(
[int overlap = 0]) → Iterable< List< LatLng> > - Generate the list of rectangle segments formed from the locus of this line
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
T> ({required T rectangle(RectangleRegion rectangle), required T circle(CircleRegion circle), required T line(LineRegion line), required T customPolygon(CustomPolygonRegion customPolygon), required T multi(MultiRegion multi)}) → T -
Output a value of type
T
the type of this regioninherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override