@override bool contains(Offset position) { return segmentRect != null && segmentRect!.contains(position); }