Notes from working with Flutter.
Non-plugin native code
Problem: I want to prototype logic requiring native integration, eg service disco in iOS, before investing in plugin abstraction.
Solution: Flutter provides an RPC abstraction, so we can add native code per-platform, switching on method name.
invokeMethod returns a Future, which we can transform into a stream if necessary, eg streaming discovered services for visualization.