Cubos Extensions

Flutter package containing the most used extension functions in Cubos Tecnologia's projects.

Features

String Extensions

cleanCpf
cleanPhone
isNumeric
isNullOrBlank
isNotNullOrBlank
capitalize
capitalizeWords
firstName
isBrazilianCountryOrState
hasUppercase
hasLowercase
hasLetter
hasDigits
hasSpecialCharacters
toDateTime
toInt

DateTime Extensions

toDateTimeStr
toIsoStr
subtractYears
toWeekdayStr
toTimeStr
toMonthStr (pt-br)
toCompleteDateStr
toDateAndTimeStr

List Extensions

lastIndex
copyOf
removeLastWhere
isNullOrEmpty

List Extensions

sum

Duration Extensions

toTimeStr

Let's grow together!

You can support us making your own contributions! Report bugs or unexpected behaviors and suggest new features on the issues page from the Github repository. All the Pull Requests must have complete unit tests as requirement to be accepted.

Libraries

cubos_extensions