getPhoto method
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);
id
the id of the photo to return.
if id
is not specified, a random photo will be returned.
Future<Photo> getPhoto({int id = null}) async =>
id == null ? _getPhotoRandom() : _getPhotoFromID(id);