validateIsEmpty static method

String? validateIsEmpty(
  1. String? value, [
  2. String message = 'Input tidak boleh kosong'
])

Implementation

static String? validateIsEmpty(
  String? value, [
  String message = 'Input tidak boleh kosong',
]) {
  if (value?.isEmpty ?? true) {
    return message;
  }
  return null;
}