defaultValue property
T
defaultValue
Returns the default value for this variable, even if its value has since been overridden.
Implementation
T get defaultValue {
var defaultCallback = _defaultCallback;
// We can't use `!` for `_defaultValue` because `T` might itself be a
// nullable type. We don't necessarily know that `_value` isn't null, we
// just know that it's the value returned by `_callback`.
return defaultCallback == null ? _defaultValue as T : defaultCallback();
}