utils/utils library

Functions

tryLocalizeKwh(double? kwh, {int fractionDigits = 1}) String?
Returns a localized version of the given double with the given fraction digits and 'kwh' suffix.