truncateAndStripTimezone property
True if the controller should truncate and convert all given DateTimes to dates in UTC timezone. Defaults to true.
DateTime truncateAndStripTimezone(DateTime date) => DateTime.utc(date.year, date.month, date.day);
truncateAndStripTimezone should be set to false if you can guarantee that all dates are in UTC timezone (with the help of a 3rd party library), which will improve performance. Warning: Giving a DateTime in local timezone or with a time component when truncateAndStripTimezone is false is undefined behavior.
Implementation
final bool truncateAndStripTimezone;