validateQuestion function

String? validateQuestion(
  1. String? value
)

Implementation

String? validateQuestion(String? value) {
  if (value == null || value.isEmpty) {
    return 'Please enter Questions';
  }

  return null; // Valid input
}