onTakePhoto method

Future<void> onTakePhoto()

Take photo from basicCameraScreen and return assets to the caller

Implementation

Future<void> onTakePhoto() async {
  final List<XFile> assets = <XFile>[];
  dataStore.selectedAssets.value.forEach((AssetModel element) {
    assets.add(element.file);
  });
  dataStore.selectedAssets.value.clear();
  dataStore.availablePath.value.clear();
  dataStore.mainCompleter.complete(assets);
}