St extension
- on
Properties
- isNullOrBlank → bool
-
Available on String?, provided by the St extension
Retorna true caso a string seja nula ou vaziano setter - isNullOrEmpty → bool
-
Available on String?, provided by the St extension
Check if string is null or emptyno setter
Methods
-
firstWord(
) → String? - Return firt word from string
-
lastWord(
) → String? - Return last word from string
-
lowerCaseFirst(
) → String? - 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, returnsdefaultDate
or null -
toDouble(
{double defaultValue = 0.0}) → double -
Available on String?, provided by the St extension
Convert to double ordefaultValue
-
toDoubleOrNull(
) → double? - Convert to double or null
-
toInt(
{int defaultValue = 0}) → int -
Available on String?, provided by the St extension
Convert to int ordefaultValue
-
toIntOrNull(
) → int? - Convert to int or null
-
upperCaseFirst(
) → String? - Deixa a primeira letra da palavra em maiusculo, e o restantante como estava
-
upperCaseFirstLower(
) → String? - Make the first letter of the word uppercase and the rest lowercase.