srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 54 forks source link

Fix strong mode warnings and hints. #8

Closed har79 closed 7 years ago

har79 commented 7 years ago

Fixes https://github.com/srawlins/timezone/issues/6.

Slightly buried in formatting changes; if you'd prefer I can do a reformat first.

Most of the actual changes were adding types to list literals to fix warnings like: [warning] Unsound implicit cast from dynamic to List (package:timezone/browser.dart, line 50, col 24)

Also fixed a couple of hints; one because ArgParser.getUsage() is deprecated in favour of ArgParser.parse, and one because the compiler couldn't infer the type of the response in browser.dart's initializeTimeZone.

Thanks!

srawlins commented 7 years ago

No it makes sense to me. Thanks again, @har79 !