toList method

List<double> toList({
  1. bool withAlpha = true,
})

Implementation

List<double> toList({bool withAlpha = true}) {
  return [r, g, b, if (withAlpha) a];
}