1. override
bool hitTest(Size size, Point position)

Tests whether the given point, on a rectangle of a given size, would be considered to hit the decoration or not. For example, if the decoration only draws a circle, this function might return true if the point was inside the circle and false otherwise.

Source

@override
// TODO(ianh): better hit testing
bool hitTest(Size size, Point position) => true;