The dispersion–brightness relation for fast radio bursts from a wide-field survey