registerViewFactory method
Register viewType
as being created by the given viewFactory
.
viewFactory
can be any function that takes an integer and optional
params
and returns an HTMLElement
DOM object.
Implementation
bool registerViewFactory(String viewType, Function viewFactory, {bool isVisible = true}) {
return PlatformViewManager.instance.registerFactory(
viewType,
viewFactory,
isVisible: isVisible,
);
}