dialog function
Implementation
Future<void> dialog(
final Widget page, {
final bool dialog = false,
final VoidCallback? onDismiss,
}) async {
final Widget _page = await Future.microtask(() => page);
Get.dialog(_page, useSafeArea: true).then(
(final _) => onDismiss != null ? onDismiss() : null,
);
}