Posts by Fábio Pacheco • 113 points
3 posts
-
0
votes1
answer287
viewsQ: How to create a reusable dropdownButton in Flutter
I intend to create a dropdown reusable with Flutter, which is capable of receiving different lists of values as an argument. However, I get an error when creating a variable that will store the…
-
-1
votes1
answer48
viewsA: How to pass a locale to Validator.isMobilePhone?
I re-wrote the code that way: phone: { type: String, required: [true, 'Por favor, forneça seu telefone.'], validate: { validator: function(v) { return validator.isMobilePhone(v, 'pt-BR'); },…
validatoranswered Fábio Pacheco 113 -
-3
votes1
answer48
viewsQ: How to pass a locale to Validator.isMobilePhone?
As step one locale pt-BR to the validator.isMobilePhone in my Mongoose schema? According to the documentation I should use an array, something similar to the code below, but the program gives error…
validatorasked Fábio Pacheco 113