supportsImageSource method

bool supportsImageSource(
  1. ImageSource source
)

Returns true if the current platform implementation supports source.

Calling a pick* method with a source for which this method returns false will throw an error.

Implementation

bool supportsImageSource(ImageSource source) {
  return platform.supportsImageSource(source);
}