fake_model_annotation library
Classes
- FakeConfig
- This is an annotation for fake_model to specify a property generating configuration.
- FakeModel
- This is an annotation for fake_model to specify a class to generate code for.
Functions
-
boolGenerator(
) → bool - Generate true/false
-
doubleGenerator(
{required num minValue, required num maxValue}) → double -
Generate random double between
minValue
tomaxValue
-
enumGenerator<
T> (List< T> values) → T - Generate enum one of the types in the enum randomly
-
intGenerator(
{required num minValue, required num maxValue}) → int -
Generate random int between
minValue
tomaxValue
-
numGenerator(
{required num minValue, required num maxValue}) → num -
Generate random num between
minValue
tomaxValue
-
stringGenerator(
String prefix, String propertyName) → String -
Generate string by format
prefix
propertyName
$cnt