get<T> method

T get<T>(
  1. String key,
  2. T defaultValue
)

Return a value.

@param key A string. @param defaultValue A value that should be returned when there is no value (undefined) with the given key. @returns The stored value or the defaultValue.

Implementation

T get<T>(
  _i2.String key,
  T defaultValue,
) =>
    _i5.callMethod(
      this,
      'get',
      [
        key,
        defaultValue,
      ],
    );