Utils topic
Utils
Classes
- DataService Utils
- The DataService class is a service that provides data to the app.
Functions
-
determinePosition(
dynamic context) → Future< UtilsPosition> - Determine the current position of the device.
-
getClosestCity(
BuildContext context) → Future< UtilsString> - The getClosestCity function returns the closest city to the user's current location.
-
isTablet(
BuildContext context) → bool Utils - The isTablet function returns true if the current viewport width is greater than or equal to 1024.
-
toRad(
double deg) → double Utils - The toRad function converts degrees to radians.