getRandomPhoto static method
Future<PublicMediumModel>
getRandomPhoto(
- AppModel app,
- String memberId,
- 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;
}