【发布时间】:2022-01-18 07:07:22
【问题描述】:
希望你今天过得愉快。
我想知道我可以使用变量访问 GetXcontroller 属性
例如:
my_controller.dart
class MyController extends GexController {
var isDocumentX = false.obs
}
ui_page.dart
final myContr = Get.put(MyController());
// I want to access like this
myContr.{dynamic}.value
dynamic的值来自api,与本例中controller属性的值相同的是isDocumentX。
我希望我的问题和例子足够清楚,可以理解
谢谢
【问题讨论】: