utils library
Utility classes, functions and exceptions that are part of DataHub.
Classes
-
Lockable<
T> - Mime
-
Pool<
T> -
StreamListenHook<
T> - Token
-
TransferCodec<
T> -
ValueSemaphore<
T>
Enums
Extensions
-
MapEquality
on Map<
K, V> - NanoSecondsDateTimeExtension on DateTime
-
TransferCodecExtension
on TransferCodec<
T>
Functions
-
addBase64Padding(
String value) → String -
buildQueryString(
Map< String, String?> query) → String -
decodeEnum<
T extends Enum> (dynamic raw, List< T> values, {String? name}) → T -
decodeEnumNullable<
T extends Enum> (dynamic raw, List< T> values, {String? name}) → T? -
decodeList<
T extends List< (E> ?, E>dynamic raw, E decode(dynamic, String?), {String? name}) → T -
decodeListTyped<
T extends List< (E> ?, E>dynamic raw, {String? name}) → T -
decodeMap<
T extends Map< (String, V> ?, V>dynamic raw, V decode(dynamic, String?), {String? name}) → T -
decodeMapTyped<
T extends Map< (String, V> ?, V>dynamic raw, {String? name}) → T -
decodeTyped<
T> (dynamic raw, {TransferCodec< T> ? codec, String? name}) → T - Decodes a typed value from its transfer representation. (JSON)
-
deepListEquality<
T> (List< T> list1, List<T> list2) → bool -
deepMapEquality<
T> (Map< T, dynamic> map1, Map<T, dynamic> map2) → bool -
encodeList<
T extends List< (E> ?, E>T value, dynamic encode(E)) → dynamic -
encodeListTyped<
T extends List< (E> ?, E>T value) → dynamic -
encodeMap<
T extends Map< (String, V> ?, V>T value, dynamic encode(V)) → dynamic -
encodeMapTyped<
T extends Map< (String, V> ?, V>T value) → dynamic -
encodeTyped<
T> (T value, {TransferCodec< T> ? codec}) → dynamic - Encodes a typed value to its transfer representation. (JSON)
-
everyCombination<
T> (Iterable< Iterable< lists) → Iterable<T> >Iterable< T> > -
firstUpper(
String input) → String -
getHttpStatus(
int statusCode) → String -
isUppercase(
int ascii) → bool -
randomBytes(
int length) → Iterable< int> -
randomHexId(
int parts) → String -
splitWords(
String input) → Iterable< String> -
stripBase64Padding(
String value) → String -
toNamingConvention(
String input, NamingConvention convention) → String -
uuid(
) → String
Exceptions / Errors
- ApiError
- Base error for when DataHub code APIs are used incorrectly by user code.
- ApiException
- Base exception for when things go wrong at runtime inside the DataHub API framework.
- CodecException