setSize method

Future<void> setSize({
  1. int? width,
  2. int? height,
})

Sets the required size of the video output. This may yield substantial performance improvements if a small width & height is specified.

Remember:

  • “Premature optimization is the root of all evil”
  • “With great power comes great responsibility”

Implementation

Future<void> setSize({
  int? width,
  int? height,
}) async {
  final instance = await platform.future;
  return instance.setSize(
    width: width,
    height: height,
  );
}