CupertinoHebrewDatePicker constructor
CupertinoHebrewDatePicker({
- Key? key,
- required BuildContext context,
- required ValueChanged<
DateTime> onDateChanged, - required ValueChanged<
DateTime> onConfirm, - DateTime? initialDate,
- String? confirmText,
- TextStyle? confirmTextStyle,
- 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);