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

no setter

Methods

firstWord() String?

Available on String?, provided by the St extension

Retorna a primeira palavra de uma string
lowerCaseFirst() String?

Available on String?, provided by the St extension

Deixa a primeira letra da palavra em minusculo, e o restantante como estava
toDate(String format, {DateTime? defaultDate}) DateTime?

Available on String?, provided by the St extension

Covente string para DateTime
toDouble({double? defaultValue}) double

Available on String?, provided by the St extension

toDoubleOrNull() double?

Available on String?, provided by the St extension

toInt({int? defaultValue}) int

Available on String?, provided by the St extension

Retorna um int da string
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

Deixa a primeira letra da palavra em maiusculo, e o restantante em minúsculo