getColor method

Color getColor(
  1. String colorName
)

Get a color by name

Implementation

Color getColor(String colorName) {
  return state[colorName] ?? Colors.transparent;
}