fetchData method
Called to fetch new data.
This implementation simply delegates to the configured onFetch callback, if set, otherwise touch will be called to refresh the value.
Note: this method is provided for subclass customization and should not be called directly.
Implementation
@protected
void fetchData() {
if (onFetch != null) {
onFetch?.call(this);
} else {
touch();
}
}