getLength method

double? getLength(
  1. int index,
  2. bool isHorizontal
)

Implementation

double? getLength(int index, bool isHorizontal) {
  return isHorizontal ? _sizeMap[index]?.width : _sizeMap[index]?.height;
}