supportsImageSource method
Returns true if the implementation supports source.
Defaults to true for the original image sources, gallery and camera,
for backwards compatibility.
Implementation
@override
bool supportsImageSource(ImageSource source) {
if (source == ImageSource.camera) {
return cameraDelegate != null;
}
return super.supportsImageSource(source);
}