MessageCodec with UTF-8 encoded JSON messages.
Supported messages are acyclic values of these forms:
On Android, messages are decoded using the org.json
library. On iOS, messages are decoded using the NSJSONSerialization
library. In both cases, the use of top-level simple messages (null, bool, num, and String) is supported (by the Flutter SDK). The decoded value will be null/nil for null, and identical to what would result from decoding a singleton JSON array with a Boolean, number, or string value, and then extracting its single element.
The type returned from decodeMessage is dynamic
(not Object?
), which means no type checking is performed on its return value. It is strongly recommended that the return value be immediately cast to a known type to prevent runtime errors due to typos that the type checker could otherwise catch.
const
no setterinherited
no setterinherited
message
from binary.
override
message
in binary.
override
inherited
inherited
inherited
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4