CupertinoHebrewDatePicker constructor

CupertinoHebrewDatePicker({
  1. Key? key,
  2. required BuildContext context,
  3. required ValueChanged<DateTime> onDateChanged,
  4. required ValueChanged<DateTime> onConfirm,
  5. DateTime? initialDate,
  6. String? confirmText,
  7. TextStyle? confirmTextStyle,
  8. TextStyle? todaysDateTextStyle,
})

Implementation

CupertinoHebrewDatePicker({
  Key? key,
  required this.context,
  required this.onDateChanged,
  required this.onConfirm,
  DateTime? initialDate,
  String? confirmText,
  TextStyle? confirmTextStyle,
  TextStyle? todaysDateTextStyle,
})  : initialDate = initialDate ?? DateTime.now(),
      confirmText = confirmText ?? "Confirm",
      confirmTextStyle = confirmTextStyle ??
          const TextStyle(
            color: CupertinoColors.destructiveRed,
            fontWeight: FontWeight.w600,
          ),
      todaysDateTextStyle = todaysDateTextStyle ??
          const TextStyle(
            color: CupertinoColors.activeBlue,
            fontWeight: FontWeight.w600,
          ),
      super(key: key);