yak_utils library

Classes

Cache<T>
an a class that lazily stores a value from a generator Function
MultiDelegate2<T, S, U>
a delegate class for a multi-argument Function where the fist type is the return type and the subsequent types are the argument of the functions
MultiDelegate3<T, S, U, V>
a delegate class for a multi-argument Function where the fist type is the return type and the subsequent types are the argument of the functions
MultiDelegate4<T, S, U, V, W>
a delegate class for a multi-argument Function where the fist type is the return type and the subsequent types are the argument of the functions
MultiDelegate5<T, S, U, V, W, X>
a delegate class for a multi-argument Function where the fist type is the return type and the subsequent types are the argument of the functions
NullaryDelegate<T>
a delegate class for a Nullary Function
UnaryDelegate<T, S>
a delegate class for n Unary Function

Extensions

CacheNullaryAsyncX on NullaryAsync<T>
generates a Cache from a NullaryAsync
CacheNullaryX on Nullary<T>
generates a Cache from a Nullary
CacheUnaryAsyncX on UnaryAsync<T, S>
given an argument generates a Cache from a UnaryAsync
CacheUnaryX on Unary<T, S>
given an argument generates a Cache from a Unary
EmptyOnNullX on Iterable<T>?
an extension on nullable Iterable<T>
IterableContainsAnyX on S
an extension that search an Iterable for any other element of a second Iterable
LetX on T
an extension on an object that uses it in a given unary
ListEqualityX on S
an extension List<T>
MapContainsAnyX on R
an extension that search an Map for any other element of a second Map
MapEqualityX on M
an extension Map<T, S>
RoundToPrecisionX on double
round a double to with a precision of given n digits
SetEqualityX on S
an extension List<T>

Functions

clampInt(int value, int min, int max) int
see sky_engine/lib/ui/lerp.dart
lerpInt(int a, int b, double t) double
see sky_engine/lib/ui/lerp.dart
lerpNNDouble(double a, double b, double t) double
see sky_engine/lib/ui/lerp.dart _lerpDouble

Typedefs

Json = Map<String, Object?>
MultiArgFunction2<T, S, U> = T Function(S, U)
a typedef for a "multi-argument" Function
MultiArgFunction3<T, S, U, V> = T Function(S, U, V)
a typedef for a "multi-argument" Function
MultiArgFunction4<T, S, U, V, W> = T Function(S, U, V, W)
a typedef for a "multi-argument" Function
MultiArgFunction5<T, S, U, V, W, X> = T Function(S, U, V, W, X)
a typedef for a "multi-argument" Function
MultiArgFunctionAsync2<T, S, U> = MultiArgFunction2<Future<T>, S, U>
a typedef for an async "multi-argument" Function
MultiArgFunctionAsync3<T, S, U, V> = MultiArgFunction3<Future<T>, S, U, V>
a typedef for an async "multi-argument" Function
MultiArgFunctionAsync4<T, S, U, V, W> = MultiArgFunction4<Future<T>, S, U, V, W>
a typedef for an async "multi-argument" Function
MultiArgFunctionAsync5<T, S, U, V, W, X> = MultiArgFunction5<Future<T>, S, U, V, W, X>
a typedef for an async "multi-argument" Function
MultiArgFunctionFutureOr2<T, S, U> = MultiArgFunction2<FutureOr<T>, S, U>
a typedef for an async "multi-argument" Function
MultiArgFunctionFutureOr3<T, S, U, V> = MultiArgFunction3<FutureOr<T>, S, U, V>
a typedef for an async "multi-argument" Function
MultiArgFunctionFutureOr4<T, S, U, V, W> = MultiArgFunction4<FutureOr<T>, S, U, V, W>
a typedef for an async "multi-argument" Function
MultiArgFunctionFutureOr5<T, S, U, V, W, X> = MultiArgFunction5<FutureOr<T>, S, U, V, W, X>
a typedef for an async "multi-argument" Function
MultiDelegateAsync2<T, S, U> = MultiDelegate2<Future<T>, S, U>
a typedef for an async MultiDelegate2
MultiDelegateAsync3<T, S, U, V> = MultiDelegate3<Future<T>, S, U, V>
a typedef for an async MultiDelegate3
MultiDelegateAsync4<T, S, U, V, W> = MultiDelegate4<Future<T>, S, U, V, W>
a typedef for an async MultiDelegate4
MultiDelegateAsync5<T, S, U, V, W, X> = MultiDelegate5<Future<T>, S, U, V, W, X>
a typedef for an async MultiDelegate5
MultiDelegateFutureOr2<T, S, U> = MultiDelegate2<FutureOr<T>, S, U>
a typedef for an async MultiDelegate2
MultiDelegateFutureOr3<T, S, U, V> = MultiDelegate3<FutureOr<T>, S, U, V>
a typedef for an async MultiDelegate3
MultiDelegateFutureOr4<T, S, U, V, W> = MultiDelegate4<FutureOr<T>, S, U, V, W>
a typedef for an async MultiDelegate4
MultiDelegatFutureOr5<T, S, U, V, W, X> = MultiDelegate5<FutureOr<T>, S, U, V, W, X>
a typedef for an async MultiDelegate5
Nullary<T> = T Function()
a typedef for a "nullary" Function
NullaryAsync<T> = Nullary<Future<T>>
NullaryDelegateAsync<T> = NullaryDelegate<Future<T>>
a typedef for an async NullaryDelegate
NullaryDelegateFutureOr<T> = NullaryDelegate<FutureOr<T>>
a typedef for an async NullaryDelegate
NullaryFutureOr<T> = Nullary<FutureOr<T>>
NullaryVoid = Nullary<void>
a typedef for an Nullary that returns a void
NullaryVoidAsync = NullaryAsync<void>
a typedef for an Nullary that returns a Future<void>
NullaryVoidDelegate = NullaryDelegate<void>
a typedef for an NullaryDelegate that returns a void
NullaryVoidDelegateAsync = NullaryDelegateAsync<void>
a typedef for an NullaryDelegateAsync that returns a Future<void>
NullaryVoidDelegatFutureOr = NullaryDelegateFutureOr<void>
a typedef for an NullaryDelegateAsync that returns a Future<void>
NullaryVoidFutureOr = NullaryFutureOr<void>
a typedef for an Nullary that returns a Future<void>
Unary<T, S> = T Function(S)
a typedef for a "unary" Function
UnaryAsync<T, S> = Unary<Future<T>, S>
UnaryDelegateAsync<T, S> = UnaryDelegate<Future<T>, S>
a typedef for an async UnaryDelegate
UnaryDelegateFutureOr<T, S> = UnaryDelegate<FutureOr<T>, S>
a typedef for an async UnaryDelegate
UnaryFutureOr<T, S> = Unary<FutureOr<T>, S>
UnaryVoid<T> = Unary<void, T>
a typedef for an Unary that returns a void
UnaryVoidAsync<T> = UnaryAsync<void, T>
a typedef for an UnaryAsync that returns a Future<void>
UnaryVoidDelegate<T> = UnaryDelegate<void, T>
a typedef for an UnaryDelegate that returns a void
UnaryVoidDelegateAsync<T> = UnaryDelegateAsync<void, T>
a typedef for an UnaryDelegateAsync that returns a Future<void>
UnaryVoidDelegateFutureOr<T> = UnaryDelegateFutureOr<void, T>
a typedef for an UnaryDelegateAsync that returns a Future<void>
UnaryVoidFutureOr<T> = UnaryFutureOr<void, T>
a typedef for an UnaryAsync that returns a Future<void>