WASHINGTON — Maybe the Nets were right to reconsider trading Brook Lopez.

Behind 26 points from Lopez — including 25 in the second half — the Nets came away with a stunning 102-80 victory over the Wizards on Friday night, snapping their seven-game losing streak in emphatic fashion with one of their better performances of the entire season.

After spending the previous 24 hours or so hearing his name come up in trade rumors that made it seem his time in Brooklyn was about to end, Lopez showed why teams should be interested if the Nets do wind up moving him. He dominated Washington’s frontline of Marcin Gortat and Nene with ease, and went 8-for-13 from the field and 9-for-10 from the free-throw line in the second half after picking up three fouls in five minutes in the first.

“I did not want to let the first half linger any longer,” Lopez said. “I wasn’t too happy with the foul calls, but I just tried to come out, stay aggressive and stay focused.

“It all came together. We all just tried to be aggressive. We tried to not let the ball really stick, and each of us take advantage of what they were doing.”

Lopez’s performance in the second half also may have been motivated by a desire to prove he’s worth more than taking a significant risk on mercurial and temperamental Brooklyn native Lance Stephenson — as the Nets considered doing in a three-way trade with Charlotte and Oklahoma City — or making a deal for the expiring contract of Kendrick Perkins and out-of-favor guard Jeremy Lamb with the Thunder in a one-on-one deal, as they also thought about doing.

In the end, the Nets chose to pull back from making any move at the moment, and Lopez was happy they did.

“I like being here,” Lopez said, before adding with a smile, “I’ve been here my whole career, and I’m kind of partial to it now.”

Only two current Nets — Lopez and Deron Williams — were part of the franchise when it still was in New Jersey. Lopez is by far the longest-tenured Net, having spent his entire career with the team since it took him with the No. 10 pick in the 2008 draft.

He was the only player the team brought to the unveiling of its new logo and color scheme back in 2012, across the street from what became Barclays Center, and he always has been open about how much he enjoys being part of the franchise.

That hasn’t kept the Nets from doing their best to attempt to trade him, most notably for nearly a year as they unabashedly pursued Dwight Howard — a move no one could blame them for, but one that still left Lopez’s name floating in one rumor after another for months at a time.

But while Lopez tries to do his best to pretend he never pays attention to anything that’s written or said about him, he couldn’t help himself when asked if he grows tired of hearing his name in trade talks.

“I’ve been on the block for, like, six-and-a-half years now,” Lopez said with a smirk, drawing laughs. “So it’s no big deal.”

There was no deal at all for the Nets on Friday, as they sat back and watched Lopez carry them to a desperately needed win. It kept them two games ahead of Charlotte and Detroit, which are tied for ninth place in the Eastern Conference, and finally gave them something to be happy about after a miserable two weeks.

After Lopez carried his teammates to a win, they said they didn’t want him to go anywhere.

“Clearly those are things that we can’t control,” said Jarrett Jack, who had a terrific game of his own with 26 points, six rebounds and seven assists while outplaying All-Star counterpart John Wall. “But I speak for myself when I say I don’t want anybody else. I want to finish with the guys I started with.”

Lopez, with his play against the Wizards, made his case for finishing where he started, too.