From 908bb8b5e0d989ec1758107f7fda5211d4f74901 Mon Sep 17 00:00:00 2001 From: Abbas Hussein Date: Thu, 19 Oct 2023 22:24:07 +0300 Subject: [PATCH] Added a void return type to OnDateChanged --- lib/src/selectors/date_picker.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/selectors/date_picker.dart b/lib/src/selectors/date_picker.dart index 2b3cd9b0..25515a7d 100644 --- a/lib/src/selectors/date_picker.dart +++ b/lib/src/selectors/date_picker.dart @@ -21,7 +21,7 @@ enum DatePickerStyle { /// {template onDateChanged} /// The action to perform when a new date is selected. /// {endtemplate} -typedef OnDateChanged = Function(DateTime date); +typedef OnDateChanged = void Function(DateTime date); /// {template macosDatePicker} /// A [MacosDatePicker] lets the user choose a date.