isCanvas property

bool get isCanvas

Returns true if empty canvas was hit (no elements).

Implementation

bool get isCanvas => hitType == HitType.canvas;