controlsList property

String get controlsList

A string representation of disallowed controls

Implementation

String get controlsList {
  final List<String> controlsList = <String>[];
  if (!allowDownload) {
    controlsList.add('nodownload');
  }
  if (!allowFullscreen) {
    controlsList.add('nofullscreen');
  }
  if (!allowPlaybackRate) {
    controlsList.add('noplaybackrate');
  }

  return controlsList.join(' ');
}