getString static method

String getString(
  1. dynamic data,
  2. String defaultValue
)

Parse String

Implementation

static String getString(dynamic data, String defaultValue) {
  if (data == null) {
    return defaultValue;
  }
  return data.toString();
}