String Extensions

VelocityX gives you powerful extensions for Strings.

First letter uppercase

firstLetterUpperCase() returns first letter of the string as Caps eg -> Flutter

"{string}".firstLetterUpperCase()
Eg: "velocityx".firstLetterUpperCase()
Output: "VelocityX"

Remove first character

eliminateFirst removes first element

"{string}".eliminateFirst
Eg: "velocityx".eliminateFirst
Output: "elocityx"

Empty or null

isEmptyOrNull returns a bool(true or false) if the string is null or empty

"{string}".isEmptyOrNull
Eg: "".isEmptyOrNull
Output: true

Email Validation

validateEmail() returns a bool(true or false) if the email id is valid or not

"{string}".validateEmail()
Eg: "mtechviral@gmail.com".validateEmail()
Output: true
Eg: "pawan kumar".validateEmail()
Output: false