mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 15:54:35 +01:00
new: tap server tab net io view to switch type
This commit is contained in:
@@ -13,6 +13,17 @@ enum NetViewType {
|
||||
@HiveField(2)
|
||||
traffic;
|
||||
|
||||
NetViewType get next {
|
||||
switch (this) {
|
||||
case conn:
|
||||
return speed;
|
||||
case speed:
|
||||
return traffic;
|
||||
case traffic:
|
||||
return conn;
|
||||
}
|
||||
}
|
||||
|
||||
String get toStr {
|
||||
switch (this) {
|
||||
case NetViewType.conn:
|
||||
|
||||
Reference in New Issue
Block a user