setNotification method

Future<void> setNotification({
  1. required UMediaMetadata metadata,
  2. bool showSeekBar = true,
})

Implementation

Future<void> setNotification({required UMediaMetadata metadata, bool showSeekBar = true}) async {
  final int? id = _playerId;
  if (id == null) return;
  await UMediaChannel.call<void>(id, "setNotification", <String, Object?>{"metadata": metadata.toMap(), "showSeekBar": showSeekBar});
  _emit(value.copyWith(metadata: metadata));
}