src/dx/_utils/utils library

Classes

DefaultResult
FileValidation
Validates file-related input parameters to prevent path traversal attacks and other security issues.
FileValidationException
Custom exception for file validation errors
InvalidArgumentsException
Custom InvalidArgumentsException with specific message
InvariantException Exceptions
Exception thrown when one of the invariants of a method is broken.
Time

Functions

computeSignature(dynamic keyset, List<String> pathSegments, Map<String, String> queryParameters) String
computeV2Signature(dynamic keyset, dynamic type, List<String> pathSegments, Map<String, String> queryParameters, String body) String
defaultFlow<P extends dynamic, R>({required dynamic core, required P params, bool deserialize = true, required Serialize<R> serialize, dynamic keyset}) Future<R>
encodePathSegament(String pathSegment) String
getExceptionFromAny(dynamic error) → dynamic
getExceptionFromDefaultResult(dynamic result) → dynamic

Typedefs

Serialize<R> = R Function(dynamic object, [Map<String, List<String>>? headers])