checkString static method

String? checkString(
  1. String? text
)

Implementation

static String? checkString(String? text){
  return (text != null && text.isEmpty) ? null : text;
}