opt.: performance

This commit is contained in:
lollipopkit
2023-09-07 18:41:18 +08:00
parent 3b698fc062
commit b55b8bf831
15 changed files with 50 additions and 39 deletions

View File

@@ -4,7 +4,7 @@ class Memory {
final int cache;
final int avail;
Memory({
const Memory({
required this.total,
required this.free,
required this.cache,
@@ -80,7 +80,7 @@ class Swap {
final int free;
final int cached;
Swap({
const Swap({
required this.total,
required this.free,
required this.cached,