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 to maxValue
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 to maxValue
numGenerator({required num minValue, required num maxValue}) num
Generate random num between minValue to maxValue
stringGenerator(String prefix, String propertyName) String
Generate string by format prefixpropertyName$cnt