setPhoto method
Selects an allowed mode while capture is idle.
Implementation
void setPhoto(bool isPhoto) {
if (_closed || _capturing || recording || photo == isPhoto) return;
if (isPhoto ? filter == XAssetKind.video : filter == XAssetKind.image) {
return;
}
_photo = isPhoto;
_safeNotify();
}