isString function

bool isString(
  1. dynamic str
)

Implementation

bool isString(dynamic str) {
  if (str != null) {
    return str is String;
  } else {
    return false;
  }
}