createCanvasView static method
Create a Canvas View and return the callback ZegoCanvas's viewID
Implementation
static Future<Widget?> createCanvasView(Function(int viewID) onViewCreated,
{Key? key}) async {
Widget? widget;
widget =
ZegoExpressPlatformViewImpl.createPlatformView(onViewCreated, key: key);
return widget;
}