Skip to content

Commit

Permalink
Added a void return type to OnDateChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbas1Hussein committed Oct 19, 2023
1 parent 5ec00bc commit 908bb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/selectors/date_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 908bb8b

Please sign in to comment.