Deploy @checked (#6244)

This patch adds `@checked` everywhere is needed to remove the
`strong_mode_invalid_method_override` strong mode error.
This commit is contained in:
Adam Barth
2016-10-07 11:27:54 -07:00
committed by GitHub
parent 8c8be6b5df
commit 2c21d795a4
31 changed files with 91 additions and 56 deletions

View File

@@ -333,7 +333,8 @@ class IOSDevice extends Device {
ApplicationPackage package,
LaunchResult result, {
String mainPath,
VMService observatory
VMService observatory,
bool prebuiltApplication: false
}) async {
throw 'unsupported';
}

View File

@@ -868,15 +868,15 @@ class ServiceMap extends ServiceObject implements Map<String, dynamic> {
@override
bool containsValue(dynamic v) => _map.containsValue(v);
@override
bool containsKey(String k) => _map.containsKey(k);
bool containsKey(Object k) => _map.containsKey(k);
@override
void forEach(Function f) => _map.forEach(f);
@override
dynamic putIfAbsent(String key, Function ifAbsent) => _map.putIfAbsent(key, ifAbsent);
@override
void remove(String key) => _map.remove(key);
void remove(Object key) => _map.remove(key);
@override
dynamic operator [](String k) => _map[k];
dynamic operator [](Object k) => _map[k];
@override
void operator []=(String k, dynamic v) => _map[k] = v;
@override