createRef
Ref<
Creates a Ref object that can be attached to a ReactElement via the ref prop.
Example:
final inputRef = createRef<InputElement>();
// In render:
input({'ref': inputRef.jsRef, 'type': 'text'})
// Later:
inputRef.current?.focus();
Implementation
Ref<T?> createRef<T>() => Ref<T?>.fromJs(_reactCreateRef());