Be explicit with types on public interfaces.

https://www.dartlang.org/articles/style-guide/#prefer-providing-type-annotations-on-public-apis

Use type dynamic here, because lot of different types are allowed here.