AnchorlableController constructor
AnchorlableController({
- GlobalKey<
State< ? initialAnchorKey,StatefulWidget> > - String? debugLabel,
- bool keepScrollOffset = true,
Implementation
AnchorlableController({
this.initialAnchorKey,
String? debugLabel,
bool keepScrollOffset = true,
}) : super(debugLabel: debugLabel, keepScrollOffset: keepScrollOffset) {
if (initialAnchorKey != null) {
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
jumpToAnchor(initialAnchorKey!);
});
}
}