isValid property

  1. @override
bool isValid
override

True if this points to a valid pixel, otherwise false.

Implementation

@override
bool get isValid =>
    x >= 0 && x < (image.width - 1) && y >= 0 && y < (image.height - 1);