center property

Color 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];