fix noop toString() diagnostics (flutter/engine#35100)

This commit is contained in:
Phil Quitslund 2022-08-02 13:52:44 -07:00 committed by GitHub
parent 3efe2e75e1
commit 2f21381404
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ class CreateSimulatorCommand extends Command<bool> with ArgUtils<bool> {
lock.minorVersion,
lock.device,
);
print('INFO: Simulator created ${simulator.toString()}');
print('INFO: Simulator created $simulator');
} catch (e) {
throw Exception('Error creating requested simulator. You can use Xcode '
'to install more versions: XCode > Preferences > Components.'

View File

@ -276,7 +276,7 @@ Future<void> runFlutter(
if (exitCode != 0) {
throw ToolExit(
'ERROR: Failed to run $executable with '
'arguments ${arguments.toString()}. Exited with exit code $exitCode',
'arguments $arguments. Exited with exit code $exitCode',
exitCode: exitCode,
);
}

View File

@ -263,7 +263,7 @@ void testMain() {
result.index,
i,
reason: 'Failed at test case number $t:\n'
'${testCase.toString()}\n'
'$testCase\n'
'"$text"\n'
'\nExpected line break at {$lastLineBreak - $i} but found line break at {$lastLineBreak - ${result.index}}.',
);
@ -283,7 +283,7 @@ void testMain() {
result.index,
greaterThan(i),
reason: 'Failed at test case number $t:\n'
'${testCase.toString()}\n'
'$testCase\n'
'"$text"\n'
'\nUnexpected line break found at {$lastLineBreak - ${result.index}}.',
);