Loading topic
async/await, and the idea that Flutter talks to native code through platform channels. You also need to be able to read Kotlin or Swi6 min readHostApi is the part of a Pigeon schema that describes calls going from Dart to native code. This chapter covers how to declare one, what Pigeon generates from it, and how to call it from Dart. Native implementations come in the next chapter.6 min readMessages.g.kt and Messages.g.swift from the BatteryApi schema in the earlier chapters. You should be able to read basic Kotlin and Swift, and know that an Android app starts from a FlutterActivity and an iOS app from an AppDelegate. The chapt5 min readpigeons/messages.dart input file, generated code, and a native implementation registered on Android and iOS. You should also be comfortable with Dart Futures and with reading Kotlin and Swift.5 min readHostApi, generated the code, and implemented it in Kotlin and Swift, as in the earlier chapters. It covers three things: which thread your native code runs on, how to write methods that finish later, and how to move heavy work off the UI thread.6 min readHostApi, implement it in Kotlin and Swift, and register it, as shown in earlier chapters. Here you will learn what happens when the native side fails, how that failure reaches Dart, and how to design an API so callers can handle it.6 min readHostApi in Kotlin or Swift. It covers the types that can cross the boundary, what changes on the native side, and the designs Pigeon cannot express. It also covers the usual workarounds.7 min readflutter_test, and that you have a working Pigeon setup like the BatteryApi from the earlier chapters. You should also be comfortable with constructor injection. By the end you will be able to test Dart code that calls a generated API withou5 min readpigeons/messages.dart input file, you can run `dart run pigeon --input pi7 min readpigeons/messages.dart file and to implement a HostApi in Kotlin and Swift. You should also know what a FlutterApi is and be comfortable with Dart Stream and StreamSubscription.6 min read