displayPercentage property

double displayPercentage

The display percentage of the current widget

Implementation

double get displayPercentage {
  if (mainAxisSize == 0) return 0;
  return (visibleMainAxisSize / mainAxisSize).clamp(0, 1);
}