getSizes static method

Future<List<Size>> getSizes()

Implementation

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