randomColor property

Color randomColor

Generates a random color with random RGB values and a constant alpha value.

The generated color is semi-transparent with an alpha value of 100.

Example usage:

Color myRandomColor = Ext.randomColor;

Implementation

static Color get randomColor => Color.fromARGB(
    100, Random().nextInt(255), Random().nextInt(255), Random().nextInt(255));