supportsImageSource method

bool supportsImageSource(
  1. ImageSource source
)

Returns true if the implementation supports source.

Defaults to true for the original image sources, gallery and camera, for backwards compatibility.

Implementation

bool supportsImageSource(ImageSource source) {
  return source == ImageSource.gallery || source == ImageSource.camera;
}