getRequiredPropertyAs<T> method
Retrieves and converts the property key
to type T
, or throws IllegalStateException
if missing or invalid.
targetType - the expected type of the property value key - the property key
Example:
final timeout = resolver.getRequiredPropertyAs<int>('http.timeout');
Implementation
@override
T getRequiredPropertyAs<T>(String key, Class<T> targetType) => _propertyResolver.getRequiredPropertyAs(key, targetType);