isAttached property Null safety
Returns true if the associated node is attached to this attachment.
It is possible to be attached to the widget tree, but not be placed in the focus tree (i.e. to not have a parent yet in the focus tree).
Implementation
bool get isAttached => _node._attachment == this;