initView method
void
initView(
- String viewId, {
- required String styleWidth,
- required String styleHeight,
- required String width,
- required String height,
- required String src,
override
Implementation
@override
void initView(
String viewId, {
required String styleWidth,
required String styleHeight,
required String width,
required String height,
required String src,
}) {
// ignore: undefined_prefixed_name
ui.platformViewRegistry.registerViewFactory(
viewId,
(int id) => html.IFrameElement()
..style.width = styleWidth
..style.height = styleHeight
..width = width
..height = height
..src = src
..style.border = 'none'
..appendHtml('<div id="html_view" hidden>html_view<div>'),
);
}