getSizes static method
Implementation
static Future<List<Size>> getSizes() async {
final availableSizes = await CameraInterface().availableSizes();
return availableSizes
.whereType<PreviewSize>()
.map((e) => Size(e.width, e.height))
.toList();
}