modes property

List<DisplayMode> get modes

The list of available display modes. The current mode will have isSelected=true. Only available on Chrome OS. Will be set to an empty array on other platforms.

Implementation

List<DisplayMode> get modes => _wrapped.modes.toDart
    .cast<$js.DisplayMode>()
    .map((e) => DisplayMode.fromJS(e))
    .toList();
set modes (List<DisplayMode> v)

Implementation

set modes(List<DisplayMode> v) {
  _wrapped.modes = v.toJSArray((e) => e.toJS);
}