tab property

Tab? get tab

The tabs.Tab which opened the connection, if any. This property will only be present when the connection was opened from a tab (including content scripts), and only if the receiver is an extension, not an app.

Implementation

Tab? get tab => _wrapped.tab?.let(Tab.fromJS);
set tab (Tab? v)

Implementation

set tab(Tab? v) {
  _wrapped.tab = v?.toJS;
}