We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RandomGenerator is public in all generator. Is this what is intended?
So we can do as below, which seems illogical to me. faker.color.random.decimal();
faker.color.random.decimal();
import 'data/colors/colors.dart'; import 'random_generator.dart'; class Color { const Color(this.random); final RandomGenerator random; /// Generates a color name. /// /// Example: /// ```dart /// faker.colors.color(); /// ``` String color() => random.element(allColors); /// Generates a color name from a smaller list of colors. /// /// Example: /// ```dart /// faker.colors.commonColor(); /// ``` String commonColor() => random.element(commonColors); }
This will be a breaking change, but it is possible to modify it.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
RandomGenerator is public in all generator.
Is this what is intended?
So we can do as below, which seems illogical to me.
faker.color.random.decimal();
This will be a breaking change, but it is possible to modify it.
The text was updated successfully, but these errors were encountered: