Device constructor

Device({
  1. required String info,
  2. required String deviceName,
  3. required List<Session> sessions,
})

Implementation

Device({
  required String info,

  /// The name of the foreign device.
  required String deviceName,

  /// A list of open window sessions for the foreign device, sorted from most
  /// recently to least recently modified session.
  required List<Session> sessions,
}) : _wrapped = $js.Device(
        info: info,
        deviceName: deviceName,
        sessions: sessions.toJSArray((e) => e.toJS),
      );