lints 2.0 fixes

In anticipation of lints v 2.0.

(Note the ignores -- I was leery of making API changes but happy to with some guidance.)

See: https://dart-review.googlesource.com/c/sdk/+/237746

Change-Id: I93323e912911bbd62a583b379f0f8140a8ca448d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237764
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
This commit is contained in:
pq
2022-03-17 23:41:27 +00:00
committed by Commit Bot
parent b036052077
commit 47ac47fe90
4 changed files with 20 additions and 10 deletions
@@ -102,7 +102,7 @@ class Text {
String render(int width) {
if (value.length > width) {
// Narrowed column.
return value.substring(0, width - 2) + '..';
return '${value.substring(0, width - 2)}..';
}
switch (direction) {
case AlignmentDirection.left:
+1 -1
View File
@@ -91,7 +91,7 @@ stderr: ${result.stderr}
});
}
late final shouldKeepTemporaryDirectories =
final shouldKeepTemporaryDirectories =
Platform.environment['KEEP_TEMPORARY_DIRECTORIES']?.isNotEmpty == true;
Future withTempDir(Future Function(String dir) f) async {