getLocator method Null safety

dynamic getLocator()

Gets the stored component locator.

Return the component's locator.