Showing
2 changed files
with
5 additions
and
5 deletions
@@ -299,7 +299,7 @@ class GetUtils { | @@ -299,7 +299,7 @@ class GetUtils { | ||
299 | 299 | ||
300 | // Obter somente os números do CNPJ | 300 | // Obter somente os números do CNPJ |
301 | var numbers = cnpj.replaceAll(RegExp(r'[^0-9]'), ''); | 301 | var numbers = cnpj.replaceAll(RegExp(r'[^0-9]'), ''); |
302 | - | 302 | + |
303 | // Testar se o CNPJ possui 14 dígitos | 303 | // Testar se o CNPJ possui 14 dígitos |
304 | if (numbers.length != 14) return false; | 304 | if (numbers.length != 14) return false; |
305 | 305 |
@@ -261,7 +261,7 @@ extension Trans on String { | @@ -261,7 +261,7 @@ extension Trans on String { | ||
261 | String get tr { | 261 | String get tr { |
262 | // Returns the key if locale is null. | 262 | // Returns the key if locale is null. |
263 | if (Get.locale?.languageCode == null) return this; | 263 | if (Get.locale?.languageCode == null) return this; |
264 | - | 264 | + |
265 | // Checks whether the language code and country code are present, and whether the key is also present. | 265 | // Checks whether the language code and country code are present, and whether the key is also present. |
266 | if (Get.translations.containsKey( | 266 | if (Get.translations.containsKey( |
267 | "${Get.locale.languageCode}_${Get.locale.countryCode}") && | 267 | "${Get.locale.languageCode}_${Get.locale.countryCode}") && |
@@ -269,12 +269,12 @@ extension Trans on String { | @@ -269,12 +269,12 @@ extension Trans on String { | ||
269 | .containsKey(this)) { | 269 | .containsKey(this)) { |
270 | return Get.translations[ | 270 | return Get.translations[ |
271 | "${Get.locale.languageCode}_${Get.locale.countryCode}"][this]; | 271 | "${Get.locale.languageCode}_${Get.locale.countryCode}"][this]; |
272 | - | ||
273 | - // Checks if there is a callback language in the absence of the specific country, and if it contains that key. | 272 | + |
273 | + // Checks if there is a callback language in the absence of the specific country, and if it contains that key. | ||
274 | } else if (Get.translations.containsKey(Get.locale.languageCode) && | 274 | } else if (Get.translations.containsKey(Get.locale.languageCode) && |
275 | Get.translations[Get.locale.languageCode].containsKey(this)) { | 275 | Get.translations[Get.locale.languageCode].containsKey(this)) { |
276 | return Get.translations[Get.locale.languageCode][this]; | 276 | return Get.translations[Get.locale.languageCode][this]; |
277 | - // If there is no corresponding language or corresponding key, return the key. | 277 | + // If there is no corresponding language or corresponding key, return the key. |
278 | } else { | 278 | } else { |
279 | return this; | 279 | return this; |
280 | } | 280 | } |
-
Please register or login to post a comment