Enable and fix lint prefer_collection_literals (#310)

Requires bumping the SDK to use set literals. This also fixes some
annoyances with the analyzer in older SDK versions.
diff --git a/.travis.yml b/.travis.yml
index a7a9ec1..7acc0b1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,7 @@
 
 dart:
   - dev
-  - 2.0.0
+  - 2.2.0
 
 dart_task:
   - test: --platform vm
diff --git a/analysis_options.yaml b/analysis_options.yaml
index de5921b..1bac99a 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -48,6 +48,7 @@
   - prefer_contains
   - prefer_equal_for_default_values
   - prefer_final_fields
+  - prefer_collection_literals
   - prefer_generic_function_type_aliases
   - prefer_initializing_formals
   - prefer_is_empty
diff --git a/lib/src/browser_client.dart b/lib/src/browser_client.dart
index 2f7f2ae..601a560 100644
--- a/lib/src/browser_client.dart
+++ b/lib/src/browser_client.dart
@@ -29,7 +29,7 @@
   /// The currently active XHRs.
   ///
   /// These are aborted if the client is closed.
-  final _xhrs = Set<HttpRequest>();
+  final _xhrs = <HttpRequest>{};
 
   /// Creates a new HTTP client.
   BrowserClient();
diff --git a/pubspec.yaml b/pubspec.yaml
index 7f35e78..17703eb 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -5,7 +5,7 @@
 description: A composable, multi-platform, Future-based API for HTTP requests.
 
 environment:
-  sdk: ">=2.0.0 <3.0.0"
+  sdk: ">=2.2.0 <3.0.0"
 
 dependencies:
   async: ">=1.10.0 <3.0.0"