value method
Implementation
T value({bool visitorExposed: true}) {
Modification? modif = this._visitorDelegate.getFlagModification(this._key);
if (modif != null) {
if (_isSameType(modif.value)) {
// Activate if necessary
if (visitorExposed) {
this.visitorExposed();
}
return modif.value as T;
}
}
return _defaultValue;
}