Dart: Add analysis_options

For now I've mostly tried to follow the same style guide as the flutter
repository, with many options disabled. Eventually, maybe it would make
sense to be far stricter.
This commit is contained in:
Vishesh Handa
2019-02-13 13:08:15 +01:00
parent ee34b60e53
commit acede95536
28 changed files with 295 additions and 176 deletions

View File

@ -11,7 +11,7 @@ Future<Directory> getGitBaseDirectory() async {
if (path == null) {
return null;
}
return new Directory(path);
return Directory(path);
}
Future<void> gitClone(String cloneUrl, String folderName) async {
@ -43,7 +43,7 @@ Future<String> generateSSHKeys({@required String comment}) async {
}
try {
String publicKey = await _platform.invokeMethod('getSSHPublicKey', {});
String publicKey = await _platform.invokeMethod('getSSHPublicKey');
print("Public Key " + publicKey);
return publicKey;
} on PlatformException catch (e) {
@ -65,7 +65,7 @@ Future<void> setSshKeys({
});
} on PlatformException catch (e) {
print("Failed to generateSSHKeys: '${e.message}'.");
throw e;
rethrow;
}
}