mapToInternalPreset function

ResolutionPreset mapToInternalPreset(
  1. PickerResolutionPreset preset
)

Implementation

ResolutionPreset mapToInternalPreset(PickerResolutionPreset preset) {
  switch (preset) {
    case PickerResolutionPreset.low:
      return ResolutionPreset.low;
    case PickerResolutionPreset.medium:
      return ResolutionPreset.medium;
    case PickerResolutionPreset.high:
      return ResolutionPreset.high;
    case PickerResolutionPreset.veryHigh:
      return ResolutionPreset.veryHigh;
    case PickerResolutionPreset.ultraHigh:
      return ResolutionPreset.ultraHigh;
    case PickerResolutionPreset.max:
      return ResolutionPreset.max;
    default:
      return ResolutionPreset.medium;
  }
}