Measurement of the azimuthal anisotropy of charged particles produced in $$\sqrt{s_{_\text {NN}}}$$ s NN = 5.02 TeV Pb+Pb collisions with the ATLAS detector