createDOOPostMessage function

String createDOOPostMessage(
  1. dynamic object
)

Implementation

String createDOOPostMessage(object) {
  final stringfyObject = "${DOO_PREFIX}${jsonEncode(object)}";
  final script = 'window.postMessage(\'${stringfyObject}\');';
  return script;
}