mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
new: custom timeout
This commit is contained in:
@@ -153,4 +153,14 @@ class SettingStore extends PersistentStore {
|
||||
'serverTabUseOldUI',
|
||||
false,
|
||||
);
|
||||
|
||||
/// Time out for server connect and more...
|
||||
late final timeout = StoreProperty(
|
||||
box,
|
||||
'timeOut',
|
||||
5,
|
||||
);
|
||||
|
||||
/// Duration of [timeout]
|
||||
Duration get timeoutD => Duration(seconds: timeout.fetch());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user