selectData method

  1. @override
Future<DateTime?> selectData({
  1. required BuildContext context,
  2. required DateEditingController controller,
})
override

Implementation

@override
Future<DateTime?> selectData({
  required BuildContext context,
  required DateEditingController controller,
}) =>
    showDatePicker(
      context: context,
      initialDate: controller.data ?? DateTime.now(),
      firstDate: firstDate ?? DateTime(1900),
      lastDate: lastDate ?? DateTime(2100),
      initialEntryMode: initialEntryMode,
      initialDatePickerMode: initialDatePickerMode,
    );