init static method
Implementation
static Future<MyCameraController> init(
int id,
_MyCameraState myCameraState,
) async {
final MethodChannel channel =
MethodChannel('plugins.flutter.io/my_camera/$id');
// TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
await channel.invokeMethod('waitForCamera');
return MyCameraController._(
channel,
myCameraState,
);
}