toList method

  1. @override
List<int> toList()
inherited

Returns a fixed-length list containing the red, green, and blue values.

Implementation

@override
List<int> toList() =>
    List<int>.from(<int>[red, green, blue], growable: false);