call<T> method
Read one of the inner property from its type T.
The property can also be identified with an additional name. This can be useful when there are
multiples properties of type T.
Implementation
T call<T>([String? name]) {
if (name == null) {
return _values[TypedPropertyKey(T)];
}
final key = NamedAndTypedPropertyKey(T, name);
if (!_values.containsKey(key))
throw Exception('No property found with name `$name`');
return _values[key];
}