updateValue method

void updateValue(
  1. T? value, {
  2. bool notifyListeners = true,
})

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));
}