After playing around a lot of time without getting didChangeDependencies
to work I found out that didUpdateWidget did the trick. Do you think that this okay or is there another stumbling block that I overlooked?
@override
void didUpdateWidget(covariant SearchTermInputOneString oldWidget) {
final log = getLogger();
log.t("didUpdateWidget");
// read apiEndpoint content
currentContent = ref
.read(widget.apiEndpointSearchTermInputContentProvider)
.cast<String>();
textEditingController.text =
currentContent.isNotEmpty ? currentContent[0] : "";
super.didUpdateWidget(oldWidget);
}