xOnPressedDelete method

dynamic xOnPressedDelete(
  1. K item,
  2. BuildContext context, {
  3. String? title_Text,
  4. dynamic func(
    1. 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);
  }
}