openModal method

Future<void> openModal(
  1. Widget widget
)

Implementation

Future<void> openModal(Widget widget) async {
  await showDialog(
      barrierColor: Colors.black.withOpacity(0.4),
      builder: (BuildContext context) {
        return widget;
      },
      context: Get.context!);
}