buildIframeViewType static method

String buildIframeViewType()

Builds a unique string to use as windowDisambiguator for when using multiple iframes in the same window.

The '-' replace had to be done in order to follow the javascript syntax notation.

Implementation

static String buildIframeViewType() {
  final iframeId = '_${const Uuid().v4().replaceAll('-', '_')}';
  return '_iframe$iframeId';
}