showDialog method

void showDialog({
  1. String? message,
  2. bool showRemoveAtsignOption = false,
})

Show dialog UI

Implementation

void showDialog({
  String? message,
  bool showRemoveAtsignOption = false,
}) {
  assert(
      _appNavigatorKey != null, "Must set appNavigator before show dialog");
  if (dialogOverlayEntry != null) {
    hideDialog();
  }
  dialogOverlayEntry = _buildDialogOverlayEntry(
    primaryColors: _primaryColor,
    backgroundColor: _backgroundColor,
    labelColor: _labelColor,
    style: _style,
    message: message,
    showRemoveAtsignOption: showRemoveAtsignOption,
  );
  _appNavigatorKey?.currentState?.overlay?.insert(dialogOverlayEntry!);
}