getComponent method Null safety

dynamic getComponent()

Gets the stored component reference.

Return the component's references.