asBool method

bool asBool()

Decode value to bool.

Implementation

bool asBool() {
  if (_value != null) {
    final String strValue = const Utf8Codec().decode(_value);
    return strValue.toLowerCase() == 'true';
  } else {
    return RemoteConfig.defaultValueForBool;
  }
}