remove unnecessary .toString() (#103226)
This commit is contained in:
committed by
GitHub
parent
a1a46c96c4
commit
d40ee2149c
@@ -228,12 +228,12 @@ Future<String> runCommand(
|
||||
);
|
||||
} on ProcessException catch (e) {
|
||||
stderr.writeln('Running "${cmd.join(' ')}" in ${workingDirectory.path} '
|
||||
'failed with:\n${e.toString()}');
|
||||
'failed with:\n$e');
|
||||
exitCode = 2;
|
||||
return utf8.decode(stdoutOutput);
|
||||
} on ArgumentError catch (e) {
|
||||
stderr.writeln('Running "${cmd.join(' ')}" in ${workingDirectory.path} '
|
||||
'failed with:\n${e.toString()}');
|
||||
'failed with:\n$e');
|
||||
exitCode = 3;
|
||||
return utf8.decode(stdoutOutput);
|
||||
}
|
||||
|
||||
@@ -149,6 +149,6 @@ abstract class TokenTemplate {
|
||||
|
||||
/// Generate a [TextTheme] text style name for the given component token.
|
||||
String textStyle(String componentToken) {
|
||||
return '$textThemePrefix${tokens["$componentToken.text-style"]!.toString()}';
|
||||
return '$textThemePrefix${tokens["$componentToken.text-style"]}';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -419,7 +419,7 @@ void _generateIconDemo(File demoFilePath, Map<String, String> tokenPairMap) {
|
||||
home: Scaffold(
|
||||
body: Wrap(
|
||||
children: const [
|
||||
${newIconUsages.toString()}
|
||||
$newIconUsages
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user