ValueNotifierStringExtension extension

Provides convenience methods to simplify string state management.

on

Properties

isEmpty → bool

Available on ValueNotifier<String>, provided by the ValueNotifierStringExtension extension

Returns true if the current value is empty.
no setter
isNotEmpty → bool

Available on ValueNotifier<String>, provided by the ValueNotifierStringExtension extension

Returns true if the current value is not empty.
no setter
length → int

Available on ValueNotifier<String>, provided by the ValueNotifierStringExtension extension

Returns the number of UTF-16 code units in the string.
no setter
trimmed → String

Available on ValueNotifier<String>, provided by the ValueNotifierStringExtension extension

Returns the current value without leading and trailing whitespace.
no setter

Methods

clear() → void

Available on ValueNotifier<String>, provided by the ValueNotifierStringExtension extension

Clears the current value by setting it to an empty string.