init method
Implementation
@override
Future<void> init(int viewId,
String url, double width, double height, bool isRepeat) async {
try {
var methodChannel = MethodChannel('${channelPrefix}_$viewId');
await methodChannel.invokeMethod<void>('init', {
'url': url,
'width': width,
'height': height,
'isRepeat': isRepeat,
});
} on PlatformException catch (e) {
debugPrint('${e.code}: ${e.message}');
}
}