props property

  1. @override
TProps props
override

A typed props object corresponding to the current untyped props Map (unwrappedProps).

Created using typedPropsFactory and cached for each Map instance.

Implementation

@override
TProps get props {
  var unwrappedProps = this.unwrappedProps;
  var typedProps = _typedPropsCache[unwrappedProps];
  if (typedProps == null) {
    typedProps = typedPropsFactory(inReactDevMode ? _WarnOnModify(unwrappedProps, true) : unwrappedProps);
    _typedPropsCache[unwrappedProps] = typedProps;
  }
  return typedProps;
}
  1. @override
void props=(Map value)
override

Equivalent to setting unwrappedProps, but needed by react-dart to effect props changes.

Implementation

@override
set props(Map value) => super.props = value;