St extension

on

Properties

isNullOrBlank → bool

Available on String?, provided by the St extension

Retorna true caso a string seja nula ou vazia
no setter
isNullOrEmpty → bool

Available on String?, provided by the St extension

Check if string is null or empty
no setter

Methods

firstWord() → String?

Available on String?, provided by the St extension

Return firt word from string
lastWord() → String?

Available on String?, provided by the St extension

Return last word from string
lowerCaseFirst() → String?

Available on String?, provided by the St extension

Leave the first letter of the word in lower case, and the rest as it was.
toDate(String format, {DateTime? defaultDate}) → DateTime?

Available on String?, provided by the St extension

Convert string to dateTime, if fail, returns defaultDate or null
toDouble({double defaultValue = 0.0}) → double

Available on String?, provided by the St extension

Convert to double or defaultValue
toDoubleOrNull() → double?

Available on String?, provided by the St extension

Convert to double or null
toInt({int defaultValue = 0}) → int

Available on String?, provided by the St extension

Convert to int or defaultValue
toIntOrNull() → int?

Available on String?, provided by the St extension

Convert to int or null
upperCaseFirst() → String?

Available on String?, provided by the St extension

Deixa a primeira letra da palavra em maiusculo, e o restantante como estava
upperCaseFirstLower() → String?

Available on String?, provided by the St extension

Make the first letter of the word uppercase and the rest lowercase.