onPressCalendar method Null safety
- BuildContext context
달력을 눌렀을때
Implementation
onPressCalendar(BuildContext context) async {
LogManager().addLog("달력선택", action: LogConstants.buttonTap, screen: runtimeType.toString());
DateTime? _dateTime =
await Navigator.of(context, rootNavigator: true).pushNamed(DateTimePickerScreen.routeName, arguments: DateTimePickerScreenArguments(currentDateTime: selectedDateTime)) as DateTime?;
// 날짜를 선택했을때만 실행
if (_dateTime != null) {
selectedDateTime = Helper().convertDateTimeToMidnight(_dateTime);
if (forceRender != null) forceRender!();
fetchAll();
LogManager().addLog("달력날짜선택 - $selectedDateTime", action: LogConstants.buttonTap, screen: runtimeType.toString());
}
}