jumpTop method

void jumpTop({
  1. int delay = 0,
})

Implementation

void jumpTop({int delay = 0}) {
  if (delay > 0) {
    Future.delayed(Duration(milliseconds: delay), () {
      postFrame(() {
        this.jumpTo(this.position.minScrollExtent);
      });
    });
  } else {
    postFrame(() {
      this.jumpTo(this.position.minScrollExtent);
    });
  }
}