init method

Future<CameraDeepArController> init(
  1. int id,
  2. _CameraDeepArState _cameraDeepArState
)

Implementation

static Future<CameraDeepArController> init(
  int id,
  _CameraDeepArState _cameraDeepArState,
) async {
  assert(id != null);
  final MethodChannel channel =
      MethodChannel('plugins.flutter.io/deep_ar_camera/$id');
  String resp = await channel.invokeMethod('isCameraReady');
  print("Camera Status $resp");
  return CameraDeepArController._(
    channel,
    _cameraDeepArState,
  );
}