Skip to content

Instantly share code, notes, and snippets.

@ShivamGoyal1899
Created June 12, 2019 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShivamGoyal1899/961c329c45174d3f4010fa80e5ae6ac4 to your computer and use it in GitHub Desktop.
Save ShivamGoyal1899/961c329c45174d3f4010fa80e5ae6ac4 to your computer and use it in GitHub Desktop.
Future<Album> createAlbum(String title) async {
return client
.createAlbum(CreateAlbumRequest.fromTitle(title))
.then((Album album) {
updateAlbums();
return album;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment