use method cascades in dartdocs