support null-safety (#42)

* support null-safety

* fix : null-aware operation warning

* fix
This commit is contained in:
Jochen
2021-03-18 22:53:55 +08:00
committed by GitHub
parent 294bcd279f
commit d1fc803dbf
15 changed files with 214 additions and 249 deletions

View File

@ -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
},
));