isEnabled property

bool get isEnabled

Whether autopan is effectively enabled.

Returns false if all edge paddings are zero/negative or pan amount is zero/negative.

Implementation

bool get isEnabled =>
    (edgePadding.left > 0 ||
        edgePadding.right > 0 ||
        edgePadding.top > 0 ||
        edgePadding.bottom > 0) &&
    panAmount > 0;