show static method

Future<MonthAndYear?> show(
  1. BuildContext context, {
  2. required DateTime initialDate,
  3. required DateTime firstDate,
  4. required DateTime lastDate,
})

Implementation

static Future<MonthAndYear?> show(
  BuildContext context, {
  required DateTime initialDate,
  required DateTime firstDate,
  required DateTime lastDate,
}) async {
  return showDialog<MonthAndYear>(
    context: context,
    builder: (context) {
      return AppMonthPicker._(
        initialDate: initialDate,
        firstDate: firstDate,
        lastDate: lastDate,
      );
    },
  );
}