isValueEmpty static method

String? isValueEmpty(
  1. String value, {
  2. String? message,
})

Implementation

static String? isValueEmpty(String value,{String? message}) {
  if (value.isEmpty) {
    return message??"Please enter value";
  }
  return null;
}