checkStringWithoutSpace static method

String? checkStringWithoutSpace(
  1. String? text
)

Implementation

static String? checkStringWithoutSpace(String? text){
  if (text == null || text.trim().isEmpty || text.contains(' ')) {
    return null;
  }
  return text;
}