deleteSequence function
- BuildContext context,
- WidgetRef ref,
- PostModel data
Implementation
Future<void> deleteSequence(
BuildContext context,
WidgetRef ref,
PostModel data,
) async {
yesAbortDialog(
context: context,
title: t.generics.areYouSure,
body: t.post.deleteMessage,
).then((result) {
if (result == DialogAction.yes) {
ref.read(firestoreServiceProvider).deletePost(data.postID!);
}
});
}