initialize method
Implementation
@override
Future<void> initialize({
required double masterVolume,
String? toneJsUrl,
}) async {
final ffiPlatform = _resolvePlatformOrThrow();
if (ffiPlatform != null) {
return ffiPlatform.initialize(
masterVolume: masterVolume,
toneJsUrl: toneJsUrl,
);
}
await methodChannel.invokeMethod<void>('initialize', <String, Object?>{
'masterVolume': masterVolume,
'toneJsUrl': toneJsUrl,
});
}