openRedactContentDialog function
Future<bool>
openRedactContentDialog( - dynamic context, {
- String? title,
- String? description,
- required String eventId,
- required String roomId,
- bool? isSpace,
- void onRemove()?,
- dynamic onSuccess()?,
- dynamic cancelBtnKey,
- dynamic removeBtnKey,
})
Implementation
Future<bool> openRedactContentDialog(
BuildContext context, {
final String? title,
final String? description,
required final String eventId,
required final String roomId,
final bool? isSpace,
final void Function()? onRemove,
final Function()? onSuccess,
final Key? cancelBtnKey,
final Key? removeBtnKey,
}) async {
return await showAdaptiveDialog(
context: context,
useRootNavigator: false,
builder: (context) => _RedactContentWidget(
title: title,
description: description,
eventId: eventId,
roomId: roomId,
isSpace: isSpace ?? false,
onRemove: onRemove,
onSuccess: onSuccess,
cancelBtnKey: cancelBtnKey,
removeBtnKey: removeBtnKey,
),
);
}