common library

Classes

AppContract
The base contract definition.
AppStackTrace
BaseConfig
The base configuration model
ErrorResponse
Registry<TConfig extends BaseConfig>
An injection registry.
RequestBase
ResponseBase

Enums

HttpMethod

Functions

makeFakes<T>({required ThingGenerator<T> factory, int count = 20}) List<T>
Generates a non-growable count sized list of the items returned by factory.
randomBool() bool
Generates a random bool value.
randomId([int length = 12]) String
Generates a random alpha-numeric ascii encoded value of the specified length (defaults to 12).
randomInt(int min, int max) int
Generates a random integer between min and max.

Typedefs

ConfigBuilder<T, TConfig extends BaseConfig> = T Function(TConfig config)
The function signature of a configuration-driven factory builder
MissingValueHandler<T> = T? Function(String key)
RandomBool = bool Function()
The shape of a bool producing function.
RandomNumber = int Function(int min, int max)
The shape of a number producing function.
ThingGenerator<T> = T Function(int index, RandomNumber random, RandomBool yesOrNo)
The shape of a T producing function.