utils library

Functions

convertBits(int bits, int decimals) String
Convert a long integer (bits) to a String with suffixes like Kb, Mb, Gb, etc.
convertBytes(int bytes, int decimals) String
Convert a long integer (bytes) to a String with suffixes like KB, MB, GB, etc.
getEnumOptionAsString(dynamic option) String
Removes the enum name from the enum's value and returns its value only. See example below. input: MonitoringOption.Sensors output: Sensors
launchURL(dynamic url) → Future
Small helper function to open a given URL in the default web browser.
valuesHaveChanged(Map values) bool
Compares the keys and values of a given map. Returns true if there is at least one key that is not equal to its value.