pub build complains about @deprecated.