getMedium static method
Get medium metadata by medium id
Implementation
static Future<Medium> getMedium({
required String mediumId,
MediumType? mediumType,
}) async {
final json = await _channel.invokeMethod('getMedium', {
'mediumId': mediumId,
'mediumType': mediumTypeToJson(mediumType),
});
return Medium.fromJson(json);
}