validationInput function

String? validationInput(
  1. dynamic value
)

Implementation

String? validationInput(value){
  if (value == null ||
      value.isEmpty) {
    return 'Veuillez remplir ce champ';
  }
  return null;
}