asDouble method

double asDouble()

Decode value to double.

Implementation

double asDouble() {
  if (_value != null) {
    final String strValue = const Utf8Codec().decode(_value);
    final double doubleValue =
        double.tryParse(strValue) ?? RemoteConfig.defaultValueForDouble;
    return doubleValue;
  } else {
    return RemoteConfig.defaultValueForDouble;
  }
}