getUserAlbums method Null safety

  1. @GET("/users/{userId}/albums")
  2. @override
Future<List<AlbumModel>> getUserAlbums(
  1. {@Path("userId") required int userId}
)
@GET("/users/{userId}/albums"), override

Returns list with all album models from a given user.

Implementation

@GET("/users/{userId}/albums")
@override
Future<List<AlbumModel>> getUserAlbums({
  @Path("userId") required int userId,
});