root property

Runtime get root

Returns the platform this is based on, or this if it's not based on anything.

That is, returns parent if it's non-null or this if it's null.

Implementation

Runtime get root => parent ?? this;