asString method

String? asString()

If the RemoteConfig value is a string, it returns a string. Otherwise, it returns null.

Implementation

String? asString() {

  if (_rawValueMap.containsKey('String')) {
    return _rawValueMap['String'];
  }
  print('[Error#ReproFlutterPlugin] RemoteConfigValue#asString: This value is not a string.');
  return null;
}