setState method
Triggers a state update for the attached text field.
Parameters:
fn(VoidCallback, required): State update callback.
Throws: AssertionError if feature is not attached.
Implementation
void setState(VoidCallback fn) {
assert(attached, 'Feature not attached');
_inputState!._setStateFeature(fn);
}