Fix type error.
Merge pull request #3687 from dart-lang/fix_type

Fix type error.