current

T get current

A reference to the latest instance of the rendered component.

See createRef for usage examples and more info.

Implementation

T get current {
  final stored = _dartObjectStore[jsRef];
  if (stored != null) return stored as T;
  final jsCurrent = jsRef.current;
  return (jsCurrent == null) ? null as T : jsCurrent.dartify() as T;
}

set current (T value)

Sets the value of current.

Implementation

set current(T value) {
  if (value != null) _dartObjectStore[jsRef] = value;
  jsRef.current = (value == null) ? null : (value as Object).jsify();
}