openRedactContentDialog function

Future<bool> openRedactContentDialog(
  1. dynamic context, {
  2. String? title,
  3. String? description,
  4. required String eventId,
  5. required String roomId,
  6. bool? isSpace,
  7. void onRemove()?,
  8. dynamic onSuccess()?,
  9. dynamic cancelBtnKey,
  10. 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,
    ),
  );
}