utils library
Utility classes, functions and exceptions that are part of DataHub.
Classes
Enums
Extensions
Functions
-
addBase64Padding(
String value) → String -
always(
dynamic _) → bool -
base64UintDecode(
String base64) → BigInt - Decode unsigned BigInt value from base64 with or without padding.
-
base64UintEncode(
BigInt number) → String - Encode unsigned BigInt value as base64url without padding.
-
earliest(
DateTime a, DateTime b) → DateTime -
everyCombination<
T> (Iterable< Iterable< lists) → Iterable<T> >Iterable< T> > -
firstUpper(
String input) → String -
getHttpStatus(
int statusCode) → String -
isLowercase(
int ascii) → bool -
isNumber(
int ascii) → bool -
isUppercase(
int ascii) → bool -
latest(
DateTime a, DateTime b) → DateTime -
logFmtEncode(
Map< String, String> values) → String -
pass<
T> (T e) → T -
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.
- ApiRequestException
- An exception that can explicitly be transformed into an ApiResponse using toResponse.
- UnsupportedExpressionError