getProperty<T> method

T? getProperty<T>(
  1. String key
)

Synchronously returns a locally cached property or constant.

Example:

final maxQuality = getProperty<int>('MAX_QUALITY') ?? 100;

Implementation

T? getProperty<T>(String key) {
  return _constants[key] as T?;
}