Position class Null safety

Please make sure, you arrange your parameters like this:

  1. Longitude, 2. Latitude, 3. Altitude (optional)
Inheritance

Constructors

Position(num lng, num lat, [num? alt])
Position.fromJson(List<num> list)
factory
Position.named({required num lat, required num lng, num? alt})
Position.of(List<num> list)
Position.of(<Lng>, <Lat>, <Alt (optional)>)

Properties

alt num?
read-only
first num
Returns the first element. [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
Returns true if there are no elements in this collection. [...]
read-only, inherited
isNotEmpty bool
Returns true if there is at least one element in this collection. [...]
read-only, inherited
isSigned bool
read-only, override
iterator Iterator<num>
Returns a new Iterator that allows iterating the elements of this Iterable. [...]
read-only, inherited
last num
Returns the last element. [...]
read-only, inherited
lat num
read-only
length int
Returns the number of elements in this. [...]
read-only, inherited
lng num
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
single num
Checks that this iterable has only one element, and returns that element. [...]
read-only, inherited

Methods

any(bool test(num element)) bool
Checks whether any element of this iterable satisfies test. [...]
inherited
cast<R>() List<R>
Provides a view of this iterable as an iterable of R instances. [...]
inherited
clone() Position
override
contains(Object? element) bool
Whether the collection contains an element equal to element. [...]
inherited
elementAt(int index) num
Returns the indexth element. [...]
inherited
every(bool test(num element)) bool
Checks whether every element of this iterable satisfies test. [...]
inherited
expand<T>(Iterable<T> f(num element)) Iterable<T>
Expands each element of this Iterable into zero or more elements. [...]
inherited
firstWhere(bool test(num element), {num orElse()?}) num
Returns the first element that satisfies the given predicate test. [...]
inherited
fold<T>(T initialValue, T combine(T previousValue, num element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value [...]
inherited
followedBy(Iterable<num> other) Iterable<num>
Returns the lazy concatenation of this iterable and other. [...]
inherited
forEach(void f(num element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
join([String separator = '']) String
Converts each element to a String and concatenates the strings. [...]
inherited
lastWhere(bool test(num element), {num orElse()?}) num
Returns the last element that satisfies the given predicate test. [...]
inherited
map<T>(T f(num e)) Iterable<T>
The current elements of this iterable modified by toElement. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
reduce(num combine(num value, num element)) num
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function. [...]
inherited
singleWhere(bool test(num element), {num orElse()?}) num
Returns the single element that satisfies test. [...]
inherited
skip(int count) Iterable<num>
Returns an Iterable that provides all but the first count elements. [...]
inherited
skipWhile(bool test(num value)) Iterable<num>
Returns an Iterable that skips leading elements while test is satisfied. [...]
inherited
take(int count) Iterable<num>
Returns a lazy iterable of the count first elements of this iterable. [...]
inherited
takeWhile(bool test(num value)) Iterable<num>
Returns a lazy iterable of the leading elements satisfying test. [...]
inherited
toJson() List<num>
inherited
toList({bool growable = true}) List<num>
Creates a List containing the elements of this Iterable. [...]
inherited
toSet() Set<num>
Creates a Set containing the same elements as this iterable. [...]
inherited
toSigned() Position
override
toString() String
A string representation of this object. [...]
inherited
where(bool test(num element)) Iterable<num>
Returns a new lazy Iterable with all elements that satisfy the predicate test. [...]
inherited
whereType<T>() Iterable<T>
Returns a new lazy Iterable with all elements that have type T. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override
operator [](int index) num?
inherited
operator []=(int index, num value) → void
inherited