maxScrollExtent property

double? get maxScrollExtent

Retrieves the maximum scrollable extent.

  • If no ScrollController is assigned, the maximum scroll extent of the parent scrollable widget is returned.
  • If a ScrollController is assigned, its maximum scroll extent is returned.

Implementation

double? get maxScrollExtent {
  if (isScrollOutside) {
    return Scrollable.maybeOf(_context)?.position.maxScrollExtent;
  } else {
    return _scrollController?.position.maxScrollExtent;
  }
}