Is there any way to pass Dart variables to another browser window? -
Is there any way to pass Dart variables to another browser window? -
i know can utilize local storage, cookies , postmessage these methods take simple types. want pass objects , lists straight other window.
i found similar question using javascript. i'd victor pointed in next link.
can pass javascript variable browser window?
trying similar in dart gives me warining before running.
var popup = window.open('popup.html', ''); popup.variable = localvariable; //warning here
passing objects not possible.
you can serialize json create simple type , pass using postmessage , deserialize. lists , maps containing simple types should work postmessage.
dart
Comments
Post a Comment