clean up code
This commit is contained in:
parent
4b5463cfa1
commit
f4ca41daa1
@ -80,7 +80,7 @@ if (!imagePage.isLast) {
|
|||||||
* Getting a Medium
|
* Getting a Medium
|
||||||
```dart
|
```dart
|
||||||
final Medium medium = await PhotoGallery.getMedium(
|
final Medium medium = await PhotoGallery.getMedium(
|
||||||
mediumId: "10",
|
mediumId: "10",
|
||||||
mediumType: MediumType.image
|
mediumType: MediumType.image
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -29,7 +29,7 @@ class PhotoGallery {
|
|||||||
}) async {
|
}) async {
|
||||||
final json = await _channel.invokeMethod('listAlbums', {
|
final json = await _channel.invokeMethod('listAlbums', {
|
||||||
'mediumType': mediumTypeToJson(mediumType),
|
'mediumType': mediumTypeToJson(mediumType),
|
||||||
'hideIfEmpty': hideIfEmpty
|
'hideIfEmpty': hideIfEmpty,
|
||||||
});
|
});
|
||||||
return json.map<Album>((x) => Album.fromJson(x)).toList();
|
return json.map<Album>((x) => Album.fromJson(x)).toList();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user