operator [] method Null safety

Color? operator [](
  1. T index
)

Returns an element of the swatch table.

Implementation

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