switchCamera method Null safety

Future<void> switchCamera()

switch camera to front or rear.

Implementation

Future<void> switchCamera() async {
  return await PlatformService.invokeMethod(
    PlatformMethod.switchCamera,
  );
}