Skip to content

Upgrading timezone 0.6 to 0.7

Breaking0.6.1 → 0.7.0Breaking2Deprecated1Changed1Other1

BreakingUpgrade verdict

2 breaking changes.

  • Code that used TimeZone.abbr must now use TimeZone.abbreviation instead.
  • When creating a TimeZone, some arguments must now be passed by name rather than by position.
  • LocationDatabase.isEmpty is deprecated; use LocationDatabase.isInitialized instead.
3 items need code or config changes

Dart SDK requirement changed in 0.7.0: >=2.1.0 <3.0.0 → >=2.12.0 <3.0.0.

Breaking2
Renames TimeZone.abbr to TimeZone.abbreviation.
TimeZone.abbrTimeZone.abbreviation
Changes some of TimeZone's constructor parameters to be named instead of positional.
TimeZone
Deprecated1
Deprecates LocationDatabase.isEmpty in favor of LocationDatabase.isInitialized.
LocationDatabase.isEmptyLocationDatabase.isInitialized