getPhoto method

Future<Photo> getPhoto ({int id: null })

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 = null}) async =>
    id == null ? _getPhotoRandom() : _getPhotoFromID(id);