initSync method
Initializes the Optimizely plugin synchronously.
This will initialize Optimizely with the local datafile to speed up initialization.
The datafile parameter needs to be the JSON content of it!
Implementation
@override
Future<void> initSync(
String sdkKey,
String datafile, {
int periodicDownloadInterval = 10 * 60,
}) async {
await methodChannel.invokeMethod('initSync', <String, dynamic>{
'sdk_key': sdkKey,
'datafile': datafile,
'periodic_download_interval': periodicDownloadInterval,
});
}