​Showing absolutely no remorse, a Brooklyn farebeater who ​shot a ​rookie ​cop ​who pulled him off a bus coldly answered, “F— it,” when ​a judge asked if he had anything to say before he sentenced him Wednesday.

Rashaun Robinson, 29,​ ​shot​ ​rookie cop James Li, 26,​ ​in each le​g ​after the cop​ ​grabbed​ ​him off a city bus in Flatbush on Feb​. 26. He​ pleaded guilty and ​was sentenced to 25 years behind bars.

Afterwards, Li coolly assessed Robinson’s performance.

“He’s dumb,” said the officer, who now walks with a cane. “I’m just glad that he’s getting 25 [years].”​​

Assistant District Attorney Lew Lieberman push​ed​ back at recent criticism of the NYPD before the sentencing.

“I just hope the public understands what these cops are doing to keep them safe,” he said in court.

Brooklyn Supreme Court Judge Alan Marrus echoed Lieberman’s words.

“This case represents a stark example of the extreme danger a police officer faces when enforcing the law,” Marrus said.

“It’s a case that demonstrates that the lawbreaker can be the one who overreacts in an [encounter] with the police.”

Robinson tried to withdraw his guilty plea before the sentencing — citing ineffective counsel and medication he’s been taking — but Marrus didn’t buy it.

“There is no reason for me to vacate your plea,” Marrus said.

After he was arrested in February, Robinson told detectives he carries a gun because cops think they run everything.

“They are the biggest gang in New York and are always messing with black people and he is sick of it,” Robinson told them, according to court papers.

He also told police he wanted to kill a cop that day, sources have said.

And when Robinson pleaded guilty last month and Marrus asked him whether he understood that he caused serious injury to Li, the heartless thug said quietly, “He can still walk.”