diff --git a/README.md b/README.md index f79f1c3..bd95613 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ if (!imagePage.isLast) { * Getting a Medium ```dart final Medium medium = await PhotoGallery.getMedium( - mediumId: "10", + mediumId: "10", mediumType: MediumType.image ); ``` diff --git a/lib/photo_gallery.dart b/lib/photo_gallery.dart index 9ca35f6..cda25cb 100644 --- a/lib/photo_gallery.dart +++ b/lib/photo_gallery.dart @@ -29,7 +29,7 @@ class PhotoGallery { }) async { final json = await _channel.invokeMethod('listAlbums', { 'mediumType': mediumTypeToJson(mediumType), - 'hideIfEmpty': hideIfEmpty + 'hideIfEmpty': hideIfEmpty, }); return json.map((x) => Album.fromJson(x)).toList(); }