misc: fix usage of deprecated SDK constants (dart-lang/package_config#50) Also fixed usage of deprecated matcher classes