containsCanvas method
True if the canvas point is within the plot area (with optional padding).
Implementation
bool containsCanvas(Offset pt, {double padding = 0}) {
return pt.dx >= left - padding &&
pt.dx <= right + padding &&
pt.dy >= top - padding &&
pt.dy <= bottom + padding;
}