Loading topic
MethodChannel call from the previous chapter, "How platform channels work". Here you will learn how a value becomes bytes and back, which types survive the trip, and what happens to the ones that don'6 min readMethodChannel: how to call native code, pass arguments, read typed results, and handle failures. It assumes you know async/await and Future, can run a basic Flutter app, and have seen the android/ and ios/ folders. The previous chapters introduced t6 min readMethodChannel: receiving a call from Dart, reading its arguments, and sending exactly one reply. It assumes you can read basic Kotlin and have already seen the Dart side (invokeMethod) and the codec type table from earlier chapters. You should also know 4 min readMethodChannel: registering a handler in Swift, reading arguments, and replying with a value, an error, or "not implemented". It assumes you have read the earlier chapters on channel architecture, codecs, and the Dart side of MethodChannel. It also assumes yo5 min readMethodChannel from Dart and answer it from Kotlin and Swift, as covered in the earlier chapters. It covers what happens when the native side cannot do what Dart asked, and how to turn those failures into predictable Dart behavior.5 min readEventChannel. It assumes you can use Stream, StreamSubscription, and async/await in Dart. It also assumes you have already written a MethodChannel call, so you know what a channel name and a binary messenger are. The Android and iOS handlers get th5 min readEventChannel. You already know the Dart side, where receiveBroadcastStream() returns a Stream. Here you write the native object that feeds that stream and make sure it starts and stops cleanly.4 min readEventChannel: the object that turns native callbacks into events on a Dart Stream. It assumes you have read the chapters on the Dart side of EventChannel and on handling method calls on iOS. You should be comfortable with Stream.listen, Swift closures5 min readMethodChannel and an EventChannel with Kotlin and Swift handlers, as in the earlier chapters. You should also be comfortable with Future, Stream, and the difference between a single-subscription and a broadcast stream. Here the question is whic7 min readMethodChannel and EventChannel code (earlier chapters) and that you know flutter_test, setUp, and tearDown.5 min readPlatformException and MissingPluginException error paths. It covers two tools that remove most of the repetition: plugin packaging and Pigeon code generat5 min read