getSupportedPreviewSizes method

Future<List<CameraSize>> getSupportedPreviewSizes()

Gets the supported preview sizes.

This method will always return a list with at least one element.

Implementation

Future<List<CameraSize>> getSupportedPreviewSizes() async {
  final List<Object?> sizes =
      await _channel.$getSupportedPreviewSizes(this) as List<Object?>;
  return sizes.cast<CameraSize>();
}