storeCookie static method
Implementation
static Future<Null> storeCookie(String cookie) async {
final prefs = await SharedPreferences.getInstance();
prefs.setString('co.datadome.cookie', cookie);
try {
_channel.invokeMethod('storeCookie', { 'cookie': cookie });
} on PlatformException catch (e) {
DataDomeLogger.error("Error while sending message to native '${e.message}'");
}
}