如何将“myEditMyProfileController.initFullName”和“myEditMyProfileController.tempFullName”分解为控制器是 GetxController 和 initFullName/tempFullName 是 String ...的方法参数?(我使用 GetX + Flutter + Dart)
Container buildEditProfileField(String myLabel, TextEditingController myTextEditingController )
{
return Container(
child: Padding(
padding: const EdgeInsets.only(bottom: 15),
child: GetBuilder<EditMyProfileController>(
init: EditMyProfileController(),
builder: (value) => TextFormField(
controller: myTextEditingController,
decoration: InputDecoration(
labelText: myLabel,
border: OutlineInputBorder(),
suffixIcon: myEditMyProfileController.initFullName != myEditMyProfileController.tempFullName ? Icon(Icons.update, color: Colors.teal) : null,
),
),
),
),
);
}