isDarkAtY method
Returns whether the given row is considered dark.
Coordinates are given in percent and must be between 0 and 1. Throws ArgumentError if the coordinates are out of range.
Implementation
bool isDarkAtY(double y, {double? threshold}) =>
_getDarkness(linearRgbAtY(y), threshold);