toMap method

Map<String, List<int>> toMap(
  1. String key
)

Implementation

Map<String, List<int>> toMap(String key) {
  return {
    "$key": [
      this.red,
      this.blue,
      this.green,
    ]
  };
}