getQuery<T> method

T? getQuery<T>(
  1. String key, {
  2. T? defaultValue,
})

Gets a query parameter with type conversion.

Supports common types: int, double, bool, String, List<String>. Returns null if the parameter doesn't exist or can't be converted.

Implementation

T? getQuery<T>(String key, {T? defaultValue}) =>
    _metadata.getQuery<T>(key, defaultValue: defaultValue);