mapToStr static method

String mapToStr(
  1. Map<String, String>? map
)

Implementation

static String mapToStr(Map<String, String>? map) {
  if (map == null) return '';
  var sb = StringBuffer();
  final lineTerminator = Platform.lineTerminator;
  map.entries.forEach((el) {
    sb
      ..write(el.key)
      ..write(' => ')
      ..write(el.value)
      ..write(lineTerminator);
  });
  return sb.toString();
}