isAttached property Null safety

bool isAttached

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).


bool get isAttached => _node._attachment == this;