StringExtension extension

Extension on the String? class providing additional functionality related to strings.

on

Properties

isNullOrEmpty → bool

Available on String?, provided by the StringExtension extension

Checks if the string is null, empty, or contains only whitespace characters.
no setter

Methods

obscureText({String replacement = '*'}) → String

Available on String?, provided by the StringExtension extension

Replaces all characters but spaces in this string with stars (default replacement is '*')
obscureTextSegment(String segment, {String replacement = '*'}) → String

Available on String?, provided by the StringExtension extension

Makes the segment in a string unrecognizable by replacing all characters but spaces in this string with stars (default replacement is '*')