dataToPoint method
将给定的数据转换为对应的坐标点
Implementation
@override
Rect dataToPoint(DateTime date, bool b) {
date = date.first();
CalendarNode? node = _nodeMap[date];
if (node == null) {
throw FlutterError('当前给定的日期不在范围内');
}
return node.rect;
}