String? validate(String? v) { if ((v ?? '').isEmpty) { return '$this is required'.tran; } else { return null; } }