create static method

Future<RCRTCView> create({
  1. BoxFit fit = BoxFit.contain,
  2. bool mirror = true,
  3. dynamic onFirstFrameRendered()?,
})

Implementation

static Future<RCRTCView> create({
  BoxFit fit = BoxFit.contain,
  bool mirror = true,
  Function()? onFirstFrameRendered,
}) async {
  int id = await _channel.invokeMethod('create');
  RCRTCView view = RCRTCView._(id, fit, mirror, onFirstFrameRendered);
  return view;
}