id property

String get id

Get the id of the device.

This id is randomly generated by the browser. A new id is generated for each session unless a flag is used to remember previously connected devices.

The browser may decide how this is generated. On Chrome this is 128 randomly generated bits that are encoded in base 64.

See:

Implementation

String get id {
  var id = _id;
  if (id != null) {
    return id;
  }
  id = _JSUtil.getProperty(_jsObject, "id") as String;
  _id = id;
  return id;
}