stringFrom static method

String stringFrom(
  1. dynamic value
)

Implementation

static String stringFrom(dynamic value) {
  if (value is String) {
    return value;
  } else if (value is int) {
    return value.toString();
  } else if (value is double) {
    return value.toString();
  } else if (value is bool) {
    return value.toString();
  } else if (value is List) {
    return value.toString();
  } else if (value is Map) {
    return value.toString();
  } else {
    return value.toString();
  }
}