createCanvasView static method

Future<Widget?> createCanvasView(
  1. dynamic onViewCreated(
    1. int viewID
    ), {
  2. Key? key,
})

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;
}