utils/utils library

Classes

CentavosInputFormatter
Formata o valor do campo com a mascara ( 9.999.999.999,00 ).
CepHelper
CepInputFormatter
Formata o valor do campo com a mascara de CEP XX.XXX-XXX
CnpjHelper
CnpjInputFormatter
Formata o valor do campo com a mascara de CNPJ 99.999.999/9999-99
CompoundableFormatter
Define um TextInputFormatter que pode ser combinado com outros para que seja possível interpolar de um para outro Usado em CompoundableFormatter
CompoundFormatter
Combina dois ous mais instâncias de Formatter de forma que seja possível interpolar de um para outro
CpfCnpjHelper
CpfHelper
CpfInputFormatter
Formata o valor do campo com a mascara de CPF XXX.XXX.XXX-XX
CpfOuCnpjFormatter
DataInputFormatter
Formata o valor do campo com a mascara de data 01/01/1900.
DebugHttpOverrides
ExcludeGlowScrollBehavior
Um ​​comportamento de rolagem que exclui o efeito de brilho da barra de rolagem.
PlacaVeiculoInputFormatter
Formata o valor do campo com a mascara de veículos ( XXX-XXXX ).
RealInputFormatter
Formata o valor do campo com a mascara ( 9.999.999.999 ).
Resulter<TResult, TError>
TelefoneHelper
TelefoneInputFormatter
Formata o valor do campo com a máscara ( (99) 99999-9999 ).
VersaoDoApp
Classe que retorna a versão do app.

Properties

keyboardIsOpened bool
Verifica se o teclado está aberto
no setter

Functions

adicionarSeparador(String texto) String
copyToClipboard(String text) Future<void>
formatCurrency(num number, {String locale = 'pt_BR'}) String
Formata o número com o seguinte pattern: R$ 9.999,99
formatDate(DateTime date, {String pattern = 'dd/MM/yyyy', String locale = 'pt_BR'}) String
Formata uma data para o formato dd/mm/yyyy
formatDecimal(num number, {String locale = 'pt_BR'}) String
Formata um número com o seguinte formato: 1.000.000,00
formatPercentage(num value, {bool showPercentage = true}) String
Formata um número com o seguinte formato: 12%
formatTelefone(String telefone, [bool ddd = true]) String
Formata a string no seguinte pattern: (xx) xxxxx-xxxx
generateGuid({bool onlyLettersAndNumbers = false}) String
getDataFromClipboard() Future<String?>
hasMatch(String? value, String pattern) bool
hideKeyboard() → void
isBlank(dynamic value) bool?
Checks if data is null or blank (empty or only contains whitespace).
isBool(String value) bool
Checks if string is boolean.
isCnpj(String cnpj) bool
isCpf(String cpf) bool
Checks if the cpf is valid.
isDateTime(String s) bool
Checks if string is DateTime (UTC or Iso8601).
isDesktopPlatform() bool
isDouble(String value) bool
Checks if string is double.
isEmail(String? s) bool
Checks if string is email.
isInt(String value) bool
Checks if string is int.
isIPv4(String s) bool
Checks if string is IPv4.
isIPv6(String s) bool
Checks if string is IPv6.
isMap(String value) bool
Checks if string is map.
isMobilePlatform() bool
isNullOrBlank(dynamic value) bool
Checks if data is null or blank (empty or only contains whitespace).
isNumber(String value) bool
Checks if string is int or double.
isPhoneNumber(String s) bool
Checks if string is phone number.
isURL(String s) bool
Checks if string is URL.
isWebPlatform() bool
removeAllWhitespace(String value) String
Remove all whitespace inside string Example: your name => yourname