Guest User

Untitled

a guest
Feb 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. JsObject dataLayer = context['dataLayer'];
  2. dataLayer ??= new JsObject(context['Array']);
  3. Map<String, dynamic> productInfo = {
  4. 'name': '1 month subscription',
  5. 'price': 21000,
  6. 'currency': 'HUF'
  7. };
  8. dataLayer.callMethod('push', [new JsObject.jsify(productInfo)]);
  9. context['dataLayer'] = dataLayer;
Add Comment
Please, Sign In to add comment