required static method

bool required(
  1. String? value
)

Implementation

static bool required(String? value) {
  if (value == null || value.isEmpty || value == 'null') {
    return false;
  }
  return true;
}