init method
Initialize the controller.
Implementation
Future<void> init(String path, String key) async {
ui.platformViewRegistry.registerViewFactory(
_webviewId,
(int id) => _twainContainer
..style.width = '100%'
..style.height = '100%',
);
_webTwainManager.init(path, key);
_twainContainer.id = 'dwtcontrolContainer';
_webTwainManager.createContainer(_twainContainer);
}