FormatUtils class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Constructors

FormatUtils.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 ==(Object other) bool
The equality operator.
inherited

Static Methods

formatCoordinates(double latitude, double longitude) String
//////////// //////////// Formats coordinates for display (e.g., "47.606°N, 122.332°W")
formatDistance(double meters, {bool useImperialUnits = false}) String
//////////// //////////// Formats a distance value (in meters) based on the desired unit system
formatDuration(double seconds) String
//////////// //////////// Formats a duration in seconds into a human-readable format
formatDurationObject(Duration duration) String
Formats a Duration object into a human-readable format
formatETA(double durationSeconds) String
Gets ETA based on current time and duration in seconds
formatSpeed(double speedKmh, {bool useImperialUnits = false}) String
//////////// //////////// Formats a speed value (in km/h) based on the desired unit system
formatTime(DateTime time) String
//////////// //////////// Formats a DateTime as HH:MM