commonSize constant

int const commonSize

Number of tones in commonTones.

In original implementation package material_color_utilities this is defined as well, presumably for improved efficiency, there it is set to TonalPalette.commonTones.length. Here we instead manually set it to compile time const of same const list length.

Flutter SDK TonalPalette has 13 common tones and FlexTonalPalette 15.

Implementation

static const int commonSize = 15;