Dart API Reference
dart:math
Random
nextBool
nextBool
method
Generates a random boolean value.
bool
nextBool
( )
Generates a random boolean value.