PhotoCapabilities constructor

PhotoCapabilities({
  1. RedEyeReduction? redEyeReduction,
  2. MediaSettingsRange? imageHeight,
  3. MediaSettingsRange? imageWidth,
  4. Iterable<FillLightMode>? fillLightMode,
})

Implementation

factory PhotoCapabilities(
        {RedEyeReduction? redEyeReduction,
        MediaSettingsRange? imageHeight,
        MediaSettingsRange? imageWidth,
        Iterable<FillLightMode>? fillLightMode}) =>
    PhotoCapabilities._(
        redEyeReduction: redEyeReduction?.value ?? undefined,
        imageHeight: imageHeight ?? undefined,
        imageWidth: imageWidth ?? undefined,
        fillLightMode: fillLightMode?.map((e) => e.value) ?? undefined);