asList method

List<int> asList()

Returns a list of ARGB color ints from concatenated tonal palettes.

Inverse of FlexCorePalette.fromList.

This fromList differs from MaterialColorUtilities version in CorePalette by including the error tonal colors last in the list.

Implementation

List<int> asList() => <int>[
      ...primary.asList,
      ...secondary.asList,
      ...tertiary.asList,
      ...neutral.asList,
      ...neutralVariant.asList,
      ...error.asList,
    ];