value property

  1. @override
GpsCoordinates get value
override

The value being updated in the UI.

Implementation

@override
GpsCoordinates get value => switch (type) {
	GpsType.decimal => GpsCoordinates(longitude: longDecimal.value, latitude: latDecimal.value),
	GpsType.degrees => GpsCoordinates(
		longitude: longDegrees.value + (longMinutes.value / 60) + (longSeconds.value / 3600),
		latitude: latDegrees.value + (latMinutes.value / 60) + (latSeconds.value / 3600),
	),
};