utils/utils library

Classes

Alarm
Creates an alarm object that will run a callback, either at a given time or after a certain duration. The alarm will not start its' countdown until start is called if given a DateTime. If the duration is negative or the time to trigger on has already passed, the alarm will trigger immediatly
AppAuthHelper
This class can be used to log in using a FlutterAppAuth. It contains several helper methods and stores a lot of parameters statically to help set up the project. Keep in mind this is designed specifically with keycloak in mind and has not been tested with other auth providers
Debouncer<T>
This class will 'debounce' a function which prevents it from being called too many times. Ideal for search bars or other situations where a call may be trigged on several rapid events.
As dart does not allow varargs or something similar, pass in a class T to be your arguments.
When run is called, it will wait (duration) before being called. If run is called again before duration is up, duration will be reset
DeviceOrientation
Contains utilities for getting the orientation of the device
FP
GrpcUtils
Utils related to grpc communication
Log
An extension of the dart logger, but includes class names
MayRest
Basic Rest Client Authors - Dan M
NumberUtils
This class contains utility functions related to number manipulation, such as rounding/wrapping values
RandomUtils
This class contains functions related to getting random numbers. You can set the see with setSeed but keep in mind this will reset Random instance when called
Session
Stores session data for the project, related to authentication and such.
StatusCode
Stores mappings of all common Http Status codes Author(s) - Dan M
SystemInfo
Timezone
Timezones
Utc

Enums

EOrientation
Level
The level that the logger can log at
Platform

Extensions

RandomElement on List

Properties

tz List<Map<String, dynamic>>
getter/setter pair

Functions

splitWithDelim(String input, Pattern pattern, [int start = 0]) List<String>