onViewChanged property

HijriDatePickerViewChangedCallback? onViewChanged
final

Called when the current visible view or visible date range changes.

The visible date range and the visible view which visible on view when the view changes available in the HijriDatePickerViewChangedArgs.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         view: HijriDatePickerView.month,
         selectionMode: DateRangePickerSelectionMode.multiple,
         showNavigationArrow: true,
         onViewChanged: (HijriDatePickerViewChangedArgs args) {
          final HijriDateRange _visibleDateRange =
                                                    args.visibleDateRange;
          final HijriDatePickerView _visibleView = args.view;
         },
       ),
     ),
   );
 }

Implementation

final HijriDatePickerViewChangedCallback? onViewChanged;