hasValue property

bool get hasValue

True when the field holds any text, obscured or not.

Implementation

bool get hasValue => (currentValue?.isNotEmpty ?? false) || (valueLength ?? 0) > 0;