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
Extensions
-
CollectionExtensions
on Iterable<
T> - DateTimeExtensions on DateTime
- FromStackTraceExtensions on StackTrace
- NumberExtensions on num
- Extensions used with numeric data types.
-
ToStackTraceExtensions
on Iterable<
String>
Functions
-
makeFakes<
T> ({required ThingGenerator< T> factory, int count = 20}) → List<T> -
Generates a non-growable
count
sized list of the items returned byfactory
. -
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 to12
). -
randomInt(
int min, int max) → int -
Generates a random integer between
min
andmax
.
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.