Calendar constructor
Calendar({
- SNumber leftMargin = const SNumber.number(0),
- SNumber topMargin = const SNumber.number(0),
- SNumber rightMargin = const SNumber.number(0),
- SNumber bottomMargin = const SNumber.number(0),
- SNumber? width,
- SNumber? height,
- required Pair<
DateTime> range, - bool sunFirst = true,
- List<
num?> cellSize = const [20, 20], - Direction direction = Direction.horizontal,
- SplitLine splitLine = const SplitLine(),
- StyleFun<
int, LabelStyle> ? weekStyleFun, - StyleFun<
DateTime, LabelStyle> ? dayStyleFun,
Implementation
Calendar({
super.leftMargin,
super.topMargin,
super.rightMargin,
super.bottomMargin,
super.width,
super.height,
required this.range,
this.sunFirst = true,
this.cellSize = const [20, 20],
this.direction = Direction.horizontal,
this.splitLine = const SplitLine(),
this.weekStyleFun,
this.dayStyleFun,
});