getPhoto method Null safety

  1. @GET("/photos/{photoId}")
  2. @override
Future<PhotoModel> getPhoto(
  1. {@Path("photoId") required int photoId}
)
@GET("/photos/{photoId}"), override

Returns a single photo model.

Implementation

@GET("/photos/{photoId}")
@override
Future<PhotoModel> getPhoto({
  @Path("photoId") required int photoId,
});