StringExtension extension

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

on

Properties

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

Methods

obscureText({String replacement = '*'}) String
Replaces all characters but spaces in this string with stars (default replacement is '*')
obscureTextSegment(String segment, {String replacement = '*'}) String
Makes the segment in a string unrecognizable by replacing all characters but spaces in this string with stars (default replacement is '*')