center property
Color
get
center
return the central item of a color list or black if the list is empty
Implementation
Color get center => isEmpty ? Colors.black : this[length ~/ 2];
return the central item of a color list or black if the list is empty
Color get center => isEmpty ? Colors.black : this[length ~/ 2];