deleteMedium static method

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

Delete medium by medium id mediumId: the identifier of medium mediumType: the type of medium

Implementation

static Future<void> deleteMedium({
  required String mediumId,
  MediumType? mediumType,
}) async {
  await _channel.invokeMethod('deleteMedium', {
    'mediumId': mediumId,
    'mediumType': mediumTypeToJson(mediumType),
  });
}