In recent years, Rasheem Dunn attended St. John’s games at the Garden. He imagined what it would be like to be on the floor wearing red as he watched his teammate from Brooklyn’s Thomas Jefferson High School, Shamorie Ponds, electrify the crowd.

Dunn won’t have to wonder for much longer. The Brooklyn native is coming home, verbally committing Friday night to transfer to St. John’s from Cleveland State and filling the last open scholarship for next season.

“When the Garden is rocking, there’s no place better, no place you rather be,” the 6-foot-2 guard told The Post in a phone interview. “This is something other kids dream of. To be living it, it’s somewhat like a dream come true.”

Dunn, a natural scorer who is capable of playing both guard positions, wasn’t planning to look for a new school until Cleveland State fired coach Dennis Felton three weeks ago. Dunn sat out last year after transferring from St. Francis Brooklyn. He looked at his options and heard from plenty of schools. Ultimately, he settled on St. John’s, choosing new coach Mike Anderson’s program over Siena, Arkansas, New Mexico and George Mason, among others.

St. John’s and Dunn are hopeful he can get a waiver to play immediately. He has two years of eligibility remaining. As a sophomore at St. Francis, he averaged 15.4 points, 5.7 rebounds and 2.3 assists.

“He’s a scorer, not necessarily a shooter, but he can make shots,” one Division I coach familiar with Dunn said. “He has the New York City toughness and mentality to compete on a nightly basis.”

Coming back home, to where he won a city championship in high school and played two years in college, felt right. Dunn saw how Ponds thrived at St. John’s and believes he can make an impact, too, providing Anderson with the third scorer St. John’s needs in support of Mustapha Heron and LJ Figueroa.

“I know I can be that third scorer,” Dunn said. “Sitting out a year developed my game. I’m a more all-around player. I’m a much more mature player.”