indexFromParent property

int get indexFromParent

Implementation

int get indexFromParent => _parent?._children.indexOf(this) ?? 0;