getAndSet

abstract fun getAndSet(source: TreeState?): TreeState?

Overrides the current scope with the given source and returns that (current) scope.

Return

the current scope that was overridden or null if no scope is currently active

Parameters

source

TreeState that should be used to supply State value