Repository navigation
Release v14.4.1
Introduces a new lint rule to catch invalid date initializations that would otherwise silently roll over into incorrect dates. Developers are now guided toward strict parsing methods to make date handling safer across Dart and Flutter projects. log
Added
avoid_datetime_constructor— flagsDateTime()andDateTime.utc()constructors, which silently roll over out-of-range values (e.g. month 13 becomes January of the next year). All-literal in-range calls are allowed. Quick fix available: replace withDateTime.tryParse(). No action required.avoid_datetime_constructor_unvalidated— flagsDateTime()calls whose result is consumed directly (returned, passed as argument, used in field initializer) without being assigned to a local variable where components can be validated. No action required.