a small fix to support new public dart sdk

description is self explanatory