xOnPressedDelete method
dynamic
xOnPressedDelete(
- K item,
- BuildContext context, {
- String? title_Text,
- dynamic func(
- K
Implementation
xOnPressedDelete(K item, BuildContext context, {String? title_Text, Function(K)? func}) async {
var r = await (xBuild_PopUp(context, item, "Are you sure to DELETE ${title_Text ?? "<No TITLE>"}"));
print("result alert base" + r.toString());
if (r!) {
func!(item);
}
}