getRandomPhoto static method

Future<PublicMediumModel> getRandomPhoto(
  1. AppModel app,
  2. String memberId,
  3. MediumAvailable? feedbackFunction
)

Implementation

static Future<PublicMediumModel> getRandomPhoto(
  AppModel app,
  String memberId,
  MediumAvailable? feedbackFunction,
) async {
  var newRandom = randomLogos[_random.nextInt(randomLogos.length)];
  var photo = await PublicMediumAccessRights()
      .getMediumHelper(
        app,
        memberId,
      )
      .createThumbnailUploadPhotoAsset(newRandomKey(), newRandom,
          feedbackProgress: feedbackFunction);
  return photo;
}