progress property

double get progress

Chapter view in percents

Implementation

double get progress {
  final itemLeadingEdgeAbsolute = position.itemLeadingEdge.abs();
  final fullHeight = itemLeadingEdgeAbsolute + position.itemTrailingEdge;
  final heightPercent = fullHeight / 100;
  return itemLeadingEdgeAbsolute / heightPercent;
}