onMoved property
EventStream<OnMovedEvent>
get
onMoved
Fired when a tab is moved within a window. Only one move event is fired,
representing the tab the user directly moved. Move events are not fired
for the other tabs that must move in response to the manually-moved tab.
This event is not fired when a tab is moved between windows; for details,
see tabs.onDetached
.
Implementation
EventStream<OnMovedEvent> get onMoved =>
$js.chrome.tabs.onMoved.asStream(($c) => (
int tabId,
$js.OnMovedMoveInfo moveInfo,
) {
return $c(OnMovedEvent(
tabId: tabId,
moveInfo: OnMovedMoveInfo.fromJS(moveInfo),
));
}.toJS);