value property

  1. @override
PhoneNumber? value
override

The current value stored in this notifier.

When the value is replaced with something that is not equal to the old value as evaluated by the equality operator ==, this class notifies its listeners.

Implementation

@override
PhoneNumber? get value => _value;
  1. @override
void value=(PhoneNumber? newValue)
override

Implementation

@override
set value(PhoneNumber? newValue) {
  if (value == newValue) return;
  _value = newValue;
  notifyListeners();
  _detach();
  try {
    countryNotifier.value = newValue?.country;
    nationalNumberController.text = newValue?.nationalNumber ?? '';
  } finally {
    _attach();
  }
}