random property

NamedColor get random

A random color from the list of named colors.

Implementation

static NamedColor get random => values.randomItem!;