getRequiredPropertyAs<T> abstract method

T getRequiredPropertyAs<T>(
  1. String key
)

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);