validateEmpty static method

String? validateEmpty(
  1. String? v
)

Implementation

static String? validateEmpty(String? v) {
   if (v!.isEmpty) {
     return Strings.fieldCantBeEmpty;
   } else {
     return null;
   }
 }