flutter_shared_utils library

Classes

ColorSchemeUtils
DateFormats
'yyyy/MM/dd HH:mm:ss','yyyy/M/d HH:mm:ss'。 year -> yyyy/yy month -> MM/M day -> dd/d hour -> HH/H minute -> mm/m second -> ss/s
DateUtil
Date Util.
DefaultLogger
Logger class, that manages the logging of messages
DeviceInfoUtils
DeviceSettingsUtils
DurationFormatterUtils
EncryptUtil
Encryption Utility.
LoggingOptions
Configuration options for logging behavior.
LogMessage
Represents a single log message with various details for debugging and information purposes.
LogWrapper
Internal class used by DefaultLogger to wrap the log messages.
ObjectUtil
Object Util.
PaddingUtils
RadiusUtils
RefinedLogger
Logger class, that manages the logging of messages
RegexUtil
Regex Utility.
RuntimeCachingUtil
ShadowUtils
SortUtils
Helper class for dns record lookups
ThemeUtils
TimerUtil
TimerUtil.
ValidationUtils
Validators

Enums

LogLevel
Log level, that describes the severity of the log message
PhoneNumber
Requirement

Extensions

RequirementX on Requirement

Properties

ID_CARD_PROVINCE_DICT List<String>
ID card province dictionary.
getter/setter pair
logger RefinedLogger
Logger global instance.
no setter
MONTH_DAY Map<int, int>
month->days.
getter/setter pair

Functions

delay(bool addDelay, [int milliseconds = 2000]) Future<void>
a small helper function to return a Future with a configurable delay
runWithLogger<T>(RefinedLogger logger, T callback()) → void
Runs callback with the given logger instance.

Typedefs

LogFormatter = String Function(LogWrapper wrappedMessage, LoggingOptions options)
Defines the format of a log message.
OnTimerTickCallback = void Function(int millisUntilFinished)
Timer callback (millisUntilFinished in milliseconds).