getNearbyIndex method
Implementation
DimensionabilityTouchBackModel? getNearbyIndex(int index) {
if (_cellModel == null || _cellModel!.isEmpty) {
return null;
}
DimensionabilityTouchBackModel? touchModel;
index = index.clamp(0, _cellModel!.length - 1);
touchModel = _cellModel![index];
return touchModel;
}