root property Null safety
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;
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
.
Runtime get root => parent ?? this;