operator [] method

TextStyle? operator [](
  1. T index
)

重写 [] 操作符

Implementation

TextStyle? operator [](T index) => TextStyle(color: _swatch[index]);