ref property

  1. @override
dynamic get ref

Either a String used to retrieve the element at a later time via react.Component.ref, or a Function that gets called with the element when it is mounted.

See: facebook.github.io/react/docs/more-about-refs.html.

Implementation

@override
dynamic get ref => (props[_$key__ref___$ReactPropsMixin] ?? null) as dynamic;
  1. @override
set ref (dynamic value)

Either a String used to retrieve the element at a later time via react.Component.ref, or a Function that gets called with the element when it is mounted.

See: facebook.github.io/react/docs/more-about-refs.html.

Implementation

@override
set ref(dynamic value) => props[_$key__ref___$ReactPropsMixin] = value;