stringValue static method

String? stringValue(
  1. Map<String, dynamic>? info,
  2. String key
)

Implementation

static String? stringValue(Map<String,dynamic>? info, String key) {
  if (info == null) { return null; }
  final str = info[key];
  if (str != null && str is String) {
    return str;
  }
  return null;
}