refactor: Update to Dart 3.10 with . shorthands
This commit is contained in:
parent
75a37f3f7c
commit
1ea649f01e
167 changed files with 3351 additions and 3912 deletions
|
|
@ -22,8 +22,13 @@ IconData _getIconFromName(String displayname) {
|
|||
}.any((s) => name.contains(s))) {
|
||||
return Icons.web_outlined;
|
||||
}
|
||||
if ({'desktop', 'windows', 'macos', 'linux', 'ubuntu'}
|
||||
.any((s) => name.contains(s))) {
|
||||
if ({
|
||||
'desktop',
|
||||
'windows',
|
||||
'macos',
|
||||
'linux',
|
||||
'ubuntu',
|
||||
}.any((s) => name.contains(s))) {
|
||||
return Icons.desktop_mac_outlined;
|
||||
}
|
||||
return Icons.device_unknown_outlined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue