BuildWithDay<T> typedef

BuildWithDay<T> = Widget Function(BuildContext context, DateDay dayTime, {BuildMark<T>? buildMark, bool enableSelect, bool hasMark, double height, bool isContinuous, bool isMultiple, bool isSelected, T? markData, OnDaySelected<T> onDaySelected, Color weekColor, Color weekendColor, double width})

默认构建日视图
context - 上下文
height - 控件高
width - 控件宽
dayTime - 当前日期
enableSelect - 是否可选
hasMark - 是否含有标记
markData - 标记内容
weekColor - 工作日颜色
weekendColor - 周末颜色
isSelected - 是否被单选
isContinuous - 是否被连选
isMultiple - 是否被多选
buildMark - 自定义构建mark
onDaySelected - 选择事件

Implementation

typedef BuildWithDay<T> = Widget Function(BuildContext context, DateDay dayTime,
    {bool enableSelect,
    bool hasMark,
    double height,
    double width,
    T? markData,
    Color weekColor,
    Color weekendColor,
    bool isSelected,
    bool isContinuous,
    bool isMultiple,
    BuildMark<T>? buildMark,
    OnDaySelected<T> onDaySelected});