validateFullName static method

String? validateFullName(
  1. String fullName
)

Agrees with the backend's own rule (authController.js trims then rejects empty) — checked locally so an empty name never reaches accounts:signUp, which would otherwise create an orphaned Auth user register can't finish for.

Implementation

static String? validateFullName(String fullName) {
  if (fullName.trim().isEmpty) return 'Full name is required.';
  return null;
}