initCamera method

Future<bool> initCamera()

第三步 初始化相机 Step 3 initialize the camera

Implementation

Future<bool> initCamera() async {
  if (!_supportPlatform) return false;
  final bool? state = await channel.invokeMethod<bool?>('initCamera');
  return state ?? false;
}