isPeriodStartFromTomorrow method
to check tomorrow is period day
Implementation
Future<bool> isPeriodStartFromTomorrow() async {
String nextPeriodDate = await getNextPredictedPeriodDate();
if (nextPeriodDate.isNotEmpty) {
DateTime tomorrowDate = DateTime.now().add(Duration(days: 1));
String formattedTomorrow =
CalenderDateUtils.dateFormat.format(tomorrowDate);
String formattedInput =
CalenderDateUtils.dateFormat.format(DateTime.parse(nextPeriodDate));
if (formattedInput == formattedTomorrow) {
return true;
} else {
return false;
}
}
return false;
}