See https://github.com/flutter/flutter/commit/76f056ac6fde78a7f25339949dc7798b12822030 We need to only do this for SDKs newer than when the new API was added, and still use the old one for others.