createToolbarView static method
Creates the video renderer Widget. The Widget is identified by viewId, the operation and layout of the Widget are managed by the app.
Implementation
static Widget createToolbarView(Function(int viewId) created, {Key? key}) {
print('*****enxrtc******' + key.toString());
if (Platform.isIOS) {
return UiKitView(
key: key,
viewType: 'EnxToolbarView',
onPlatformViewCreated: (viewId) {
print('' + viewId.toString());
created(viewId);
print('view created' + viewId.toString());
},
);
} else {
return AndroidView(
key: key,
viewType: 'EnxToolbarView',
onPlatformViewCreated: (viewId) {
print('' + viewId.toString());
created(viewId);
},
);
}
}