getChildIndex method Null safety

  1. @override
int getChildIndex(
  1. DisplayObject child
)
override

Returns the index position of a child DisplayObject.

Implementation

@override
int getChildIndex(DisplayObject child) => _children.indexOf(child);