RandomGenerator constructor

RandomGenerator(
  1. String rawExpression, {
  2. RandomDelegate? randomDelegate,
  3. 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;
  }
}