getMedium static method

Future<Medium> getMedium({
  1. required String mediumId,
  2. MediumType? mediumType,
})

Get medium metadata by medium id mediumId: the identifier of medium mediumType: the type of medium

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);
}