getPathData method

dynamic getPathData(
  1. int index
)

Implementation

dynamic getPathData(int index){
  final segmentData = req?.uri.pathSegments;
  return segmentData?[index];

}