isString property
bool
isString
Determine whether the current instance is a String.
Can be called in the following ways,
'2'.isString
'2'.runtimeType.isString
Implementation
bool get isString {
if (this is Type) {
return this == String;
} else {
return this is String;
}
}