# mockCamera static method

Future<void> mockCamera(

1. MockCameraParams args

)

Mock camera preview by using static images as a frame source.

This is useful for testing purposes.

## Implementation

    static Future<void> mockCamera(MockCameraParams args) async {
      try {
        await channel.invokeMethod('mockCamera', args.toJson());
      } catch (e) {
        Logger.root.severe(e);
        rethrow;
      }
    }