Calendar constructor

Calendar({
  1. SNumber leftMargin = const SNumber.number(0),
  2. SNumber topMargin = const SNumber.number(0),
  3. SNumber rightMargin = const SNumber.number(0),
  4. SNumber bottomMargin = const SNumber.number(0),
  5. SNumber? width,
  6. SNumber? height,
  7. required Pair<DateTime> range,
  8. bool sunFirst = true,
  9. List<num?> cellSize = const [20, 20],
  10. Direction direction = Direction.horizontal,
  11. SplitLine splitLine = const SplitLine(),
  12. StyleFun<int, LabelStyle>? weekStyleFun,
  13. 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,
});