mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-08-06 18:24:24 +08:00
support null-safety (#42)
* support null-safety * fix : null-aware operation warning * fix
This commit is contained in:
@ -26,7 +26,7 @@ void main() {
|
||||
channel.name,
|
||||
channel.codec.encodeMethodCall(
|
||||
MethodCall('onLoginResp', json.decode('{"ret":-2}'))),
|
||||
(ByteData data) {
|
||||
(ByteData? data) {
|
||||
// mock success
|
||||
},
|
||||
));
|
||||
@ -42,7 +42,7 @@ void main() {
|
||||
channel.name,
|
||||
channel.codec.encodeMethodCall(
|
||||
MethodCall('onShareResp', json.decode('{"ret":0}'))),
|
||||
(ByteData data) {
|
||||
(ByteData? data) {
|
||||
// mock success
|
||||
},
|
||||
));
|
||||
|
Reference in New Issue
Block a user