toImageSource method
ImageSource
toImageSource()
Implementation
ImageSource toImageSource() {
switch (this) {
case DeviceMediaSource.gallery:
return ImageSource.gallery;
case DeviceMediaSource.camera:
return ImageSource.camera;
}
}