opt.: replace first with firstOrNull
This commit is contained in:
@@ -50,7 +50,7 @@ class Temperatures {
|
||||
return _map[key];
|
||||
}
|
||||
}
|
||||
return _map.values.first;
|
||||
return _map.values.firstOrNull;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user