ColorMatrix constructor

ColorMatrix(
  1. List<double> values
)

Implementation

ColorMatrix(List<double> values)
  : _values = List<double>.unmodifiable(values) {
  if (values.length != 20) {
    throw ArgumentError.value(
      values.length,
      'values',
      'ColorMatrix requires exactly 20 coefficients.',
    );
  }
}