getPropKey<T extends Map> function
Returns the string key of the factory
prop accessed in accessProp
.
Example:
var valuePropKey = getPropKey((props) => props.value, TextInput);
Implementation
String getPropKey<T extends Map>(void Function(T keySpy) accessProp, T Function(Map props) factory) {
return _getKey((keySpy) {
return accessProp(factory(keySpy));
})! as String;
}