getSupportedPictureSizes method

Future<List<CameraSize>> getSupportedPictureSizes()

Gets the supported picture sizes.

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

Implementation

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