Replace use of int.parse with int.tryParse (dart-lang/pub_semver#43)

By replacing `int.parse` with `int.tryParse`, exceptions will no longer
be thrown if the version part is a non-integer. This avoids triggering
the debugger if set to break on "All Exceptions".

Fixes dart-lang/pub_semver#42
1 file changed
tree: ada57398244846fa26c4aa1229796f8ab6f502c5
  1. pkgs/