colorMatrix static method
Returns a list of 20 doubles from the specified list.
If the specified key does not identify a list, returns null instead.
If the list has fewer than 20 entries or if any of the entries are not doubles, any entries that could not be obtained are replaced by zero.
Used by colorFilter in the matrix mode.
Implementation
static List<double?>? colorMatrix(List<String>? list) {
if (list == null) return null;
return list.map((e) => double.tryParse(e)).toList();
}