getPhoto method

Future<Photo?> getPhoto({
  1. int? id,
})

id the id of the photo to return. if id is not specified, a random photo will be returned.

Implementation

Future<Photo?> getPhoto({int? id}) async =>
    id == null ? _getPhotoRandom() : _getPhotoFromID(id);