getRequiredPropertyAs<T> abstract method
The value of the property key converted to T. Throws
MissingPropertyException when no source has it (or it converts to
null), and a ConversionException when it cannot be converted.
final port = resolver.getRequiredPropertyAs<int>('server.port');
Implementation
T getRequiredPropertyAs<T>(String key);