enable lint prefer_single_quotes (#12665)

This commit is contained in:
Alexandre Ardhuin
2017-10-22 18:11:36 +02:00
committed by GitHub
parent b07ea41954
commit 1fce14a31c
90 changed files with 664 additions and 663 deletions

View File

@@ -142,7 +142,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
createHttpClient = () {
return new http.MockClient((http.BaseRequest request) {
return new Future<http.Response>.value(
new http.Response("Mocked: Unavailable.", 404, request: request)
new http.Response('Mocked: Unavailable.', 404, request: request)
);
});
};

View File

@@ -26,7 +26,7 @@ class _MockToStringDeep {
/// line break.
List<String> _lines;
String toStringDeep({ String prefixLineOne: "", String prefixOtherLines: "" }) {
String toStringDeep({ String prefixLineOne: '', String prefixOtherLines: '' }) {
final StringBuffer sb = new StringBuffer();
if (_lines.isNotEmpty)
sb.write('$prefixLineOne${_lines.first}');