StringExtension extension

Extension on String to provide additional functionality.

on

Properties

isStrongPassword → bool

Available on String, provided by the StringExtension extension

no setter
passwordStrengthFeedback → String

Available on String, provided by the StringExtension extension

no setter

Methods

capitalize() → String

Available on String, provided by the StringExtension extension

Returns the string with the first letter capitalized.
isBlank() → bool

Available on String, provided by the StringExtension extension

Returns true if the string is blank or empty, false otherwise.
isDouble() → bool

Available on String, provided by the StringExtension extension

Returns true if the string can be converted to a double, false otherwise.
isInt() → bool

Available on String, provided by the StringExtension extension

Returns true if the string can be converted to an integer, false otherwise.
isJson() → bool

Available on String, provided by the StringExtension extension

Returns true if the string can be parsed as a JSON object, false otherwise.
toDouble() → double?

Available on String, provided by the StringExtension extension

Tries to parse the string as a double and returns the result.
toInt({int? radix}) → int?

Available on String, provided by the StringExtension extension

Tries to parse the string as an integer and returns the result.