RandomGenerator constructor
RandomGenerator(
- String rawExpression, {
- RandomDelegate? randomDelegate,
- bool onGenerateLength = false,
Implementation
RandomGenerator(this.rawExpression,
{RandomDelegate? randomDelegate, bool onGenerateLength = false})
: _onGenerateLen = onGenerateLength,
_delegate = DefaultRandomDelegate(math.Random()) {
try {
_parse(rawExpression);
_buildOptions();
} on Exception {
rethrow;
}
}