Header constructor

const Header({
  1. Key? key,
  2. required DateTime monthDate,
  3. EdgeInsetsGeometry margin = const EdgeInsets.only(left: 16.0, right: 8.0, top: 4.0, bottom: 4.0),
  4. VoidCallback? onPressed,
  5. TextStyle? dateStyle,
  6. TextStyle? todayStyle,
})

Implementation

const Header({
  Key? key,
  required this.monthDate,
  this.margin = const EdgeInsets.only(
    left: 16.0,
    right: 8.0,
    top: 4.0,
    bottom: 4.0,
  ),
  this.onPressed,
  this.dateStyle,
  this.todayStyle,
}) : super(key: key);