editDialog method
Implementation
Future<void> editDialog() async {
if (context != null && callback != null) {
String? result = await showDialog(
context: context!,
builder: (BuildContext context) => PrefTextEdit(
pref: pref,
),
);
if (result != null) {
pref.value = result;
callback!(pref);
}
}
}