isStr method

bool isStr(
  1. String? type
)

Implementation

bool isStr(String? type){
  if(type == null){
    return false;
  }
  if(type.contains("text") || type.contains("json") || type.contains("xml")){
    return true;
  }
  return false;
}