enable lint prefer_interpolation_to_compose_strings (#83407)
This commit is contained in:
committed by
GitHub
parent
71e711547f
commit
34059eec2c
@@ -213,9 +213,9 @@ class ListItem extends StatelessWidget {
|
||||
if (count < 10000) {
|
||||
return count.toString();
|
||||
} else if (count < 100000) {
|
||||
return (count / 10000).toStringAsPrecision(2) + 'w';
|
||||
return '${(count / 10000).toStringAsPrecision(2)}w';
|
||||
} else {
|
||||
return (count / 10000).floor().toString() + 'w';
|
||||
return '${(count / 10000).floor()}w';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user