createWootPostMessage function

String createWootPostMessage(
  1. dynamic object
)

Implementation

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