debugColors property

List<Color>? debugColors

Implementation

List<Color>? get debugColors {
  var size = 10;
  if (!showDebugColors) return List.filled(size, Colors.transparent);

  var random = Random(1335);

  return List.generate(size, (index) => Color.fromRGBO(random.nextInt(255), random.nextInt(255), random.nextInt(255), 1.0 / (index + 1).toDouble()));
}