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:
@@ -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([]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user