showToast method

void showToast(
  1. String string
)

Implementation

void showToast(String string) {
  if (_isDesktopRuntime) {
    final overlayState =
        NECallKitNavigatorObserver.getInstance().navigator?.overlay;
    if (overlayState != null && overlayState.mounted) {
      ToastUtils.showToastOnOverlay(overlayState, string);
      return;
    }
    CallKitUILog.i(_tag, 'showToast skipped: no overlay state, msg:$string');
    return;
  }
  Fluttertoast.showToast(msg: string);
}