mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Makes InvokeMethod's reply a high-level response object, rather than binary data, matching the abstraction level of the class (and the other languages' implementations). In support of that: - Adds the logic to the codecs to decode response envelopes, which had never been implemented. - Adds a convience implementation of MethodResult that forwards to lambdas, so that one-off invocation handlers are easier to write. Also simplified BinaryMessenger's API so that subclasses only need to implement one version of Send, rather than two almost-identical versions. Fixes https://github.com/flutter/flutter/issues/53223