Calling dateUtil.getWeek() throws an error with a message "type 'double' is not a subtype of type 'int'".
A portion of code that raises the exception is as follows:
DateTime today = DateTime.now();
var todayWeek = dateUtil.getWeek(today.month, today.day, today.year);
print('todayWeek=' + todayWeek.toString());
Calling
dateUtil.getWeek()throws an error with a message "type 'double' is not a subtype of type 'int'".A portion of code that raises the exception is as follows:
DateTime today = DateTime.now();var todayWeek = dateUtil.getWeek(today.month, today.day, today.year);print('todayWeek=' + todayWeek.toString());