remove unnecessary String.toString() (#81859)

This commit is contained in:
Alexandre Ardhuin
2021-05-07 23:54:02 +02:00
committed by GitHub
parent e74c15cac4
commit 9bca38c5e5
10 changed files with 10 additions and 10 deletions

View File

@@ -66,7 +66,7 @@ import 'stock_strings_es.dart';
/// be consistent with the languages listed in the StockStrings.supportedLocales
/// property.
abstract class StockStrings {
StockStrings(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString());
StockStrings(String locale) : localeName = intl.Intl.canonicalizedLocale(locale);
final String localeName;

View File

@@ -282,7 +282,7 @@ class _SlidersState extends State<_Sliders> {
),
),
Slider.adaptive(
label: _continuousValue.toStringAsFixed(6).toString(),
label: _continuousValue.toStringAsFixed(6),
value: _continuousValue,
min: 0.0,
max: 100.0,