getDescription method

String getDescription(
  1. String key
)

Returns value.toString() if it exists. Otherwise, returns an empty string.

Implementation

String getDescription(String key) {
  // ignore: implicit_dynamic_variable
  final value = map[key];
  return value != null ? value.toString() : '';
}