Flutter Web + Firebase

How do you do CRUD operations in Dart, if the Flutter Web uses html and javascript?
Given that the setup for Flutter Web is by inserting scripts into index.html, how do you for example write dart code to read from the firebase collection? Is it very different from Flutter iOS or Flutter Android app?