aqua library

Constants

degrees2Radians → const double

Functions

avoidRedBlackWhitePaletteFilter(HSLColor color) bool
A basic PaletteFilter, which rejects colors near black, white and low saturation red.
capitalize(String input) String
createFile(dynamic filePath, String data, {bool clear = false}) Future<void>
delay(int milliseconds, {Function? callback, bool verbose = false}) Future<void>
disallowGlow(Widget child) Widget
generateId({int length = 25}) String
getPalette(ImageProvider<Object> imageProvider) Future<ColorFromImage>
getRandomNumber({int min = 0, int max = 100}) int
initIsolate(String name, dynamic callback(List<Object?>), {Function? onListenCallback, List? callbackArgs, bool verbose = false}) Future<SpawnedIsolate>
obscureText(String text) String
pretifyNumber(String number) String
pretifyOutput(String info, {AqColor color = AqColor.green, AqColor? bgColor, String? path, bool clear = false, String? endLine}) Future<void>
readTimestamp(int timestamp) String
requestFocus(Widget child, BuildContext context, {FocusNode? focusNode}) Widget
showSnackBar(String info, BuildContext context, {Color color = Colors.white, Color bgColor = Colors.redAccent, bool mounted = false, int seconds = 2}) → void
tryCatch<T, T1>(Future<T> callback([T1?]), {bool verbose = false, Future<void> onError()?, String? tag, T1? arg, String? path}) Future<T?>

Typedefs

PaletteFilter = bool Function(HSLColor color)
Hook to allow clients to be able filter colors from selected in a PaletteGenerator. Returns true if the color is allowed.