mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-30 21:52:00 +08:00
[Party Room] 加入房间功能
This commit is contained in:
@ -64,7 +64,7 @@ class BaseUIModel extends ChangeNotifier {
|
||||
dPrint("$runtimeType.handleError Error:$e");
|
||||
String errorMsg = "Unknown Error";
|
||||
if (e is GrpcError) {
|
||||
errorMsg = "服务器错误: ${e.message} ?? Unknown Error";
|
||||
errorMsg = "远程服务器消息: ${e.message ?? "Unknown Error"}";
|
||||
} else {
|
||||
errorMsg = e.toString();
|
||||
}
|
||||
@ -112,7 +112,10 @@ class BaseUIModel extends ChangeNotifier {
|
||||
return _childUIProviders![modelKey]!;
|
||||
}
|
||||
|
||||
T? getCreatedChildUIModel<T extends BaseUIModel>(String modelKey) {
|
||||
T? getCreatedChildUIModel<T extends BaseUIModel>(String modelKey,{bool create = false}) {
|
||||
if (create && _childUIModels?[modelKey] == null) {
|
||||
_getChildUIModel(modelKey);
|
||||
}
|
||||
return _childUIModels?[modelKey] as T?;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user