operator [] method

Color? operator [](
  1. T key
)

Returns an element of the swatch table.

Implementation

Color? operator [](T key) => _swatch[key];