A novel Ag⁺ cation sensor based on polyamidoamine dendrimer modified with 1,8-naphthalimide derivatives.