updateValue method
Implementation
void updateValue(
T? value, {
bool notifyListeners = true,
}) {
if (maskFormatter != null) {
if (value is String) {
value = maskText(value)! as T;
maskFormatter?.updateMask(
mask: maskFormatter?.getMask(),
newValue: TextEditingValue(
text: value as String,
),
);
}
}
onDidUpdateValue.sink.add((value, notifyListeners));
}