setPhoto method

void setPhoto(
  1. bool isPhoto
)

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();
}