setJavaScriptInjections method
Registers extra JavaScript assets to inject into every EPUB HTML resource,
in addition to the built-in flutterReadiumTools.js.
Call before opening a publication so the injections are in effect when the reader view is created.
Implementation
@override
Future<void> setJavaScriptInjections(List<InjectionAsset> injections) async {
await methodChannel.invokeMethod<void>(
'setJavaScriptInjections',
injections.map((e) => e.toJson()).toList(),
);
}