2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-09-14 04:23:17 +00:00

null-safety

This commit is contained in:
2021-07-24 13:12:43 +03:00
parent 6be04c39ed
commit 614c6853e3
48 changed files with 3022 additions and 3320 deletions

View File

@@ -2,21 +2,16 @@ import '../Data/BinaryList.dart';
import '../Core/AsyncReply.dart';
import 'NetworkConnection.dart';
class SendList extends BinaryList
{
NetworkConnection connection;
AsyncReply<List<dynamic>> reply;
class SendList extends BinaryList {
NetworkConnection connection;
AsyncReply<List<dynamic>>? reply;
SendList(NetworkConnection connection, AsyncReply<List<dynamic>> reply)
{
this.reply = reply;
this.connection = connection;
}
SendList(this.connection, this.reply) {}
@override
AsyncReply<List<dynamic>> done()
{
connection.send(super.toDC());
return reply;
}
@override
AsyncReply<List<dynamic>> done() {
connection.send(super.toDC());
return reply ?? AsyncReply.ready([]);
}
}