show static method

void show(
  1. BuildContext context, {
  2. required DateTime initialDate,
  3. required DateTime firstDate,
  4. required DateTime lastDate,
  5. Color bgColor = Colors.white,
  6. dynamic onChanged(
    1. DateTime?
    )?,
})

Implementation

static void show(BuildContext context,
    {required DateTime initialDate,
    required DateTime firstDate,
    required DateTime lastDate,
    Color bgColor = Colors.white,
    Function(DateTime?)? onChanged}) {
  DialogManager()
    ..context = context
    ..child = _CustomDatePicker(
        initialDate: initialDate, firstDate: firstDate, lastDate: lastDate, onChanged: onChanged,backgroundColor: bgColor,)
    ..barrierDismissible = true
    ..showClose = true
    ..show();
}