migrate to nnbd

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-04-20 19:52:06 +05:30
parent 8f1f7b0b68
commit 3bb1b11ee8
59 changed files with 642 additions and 589 deletions
@@ -620,7 +620,7 @@ class Channel {
Future<SendReactionResponse> sendReaction(
Message message,
String type, {
Map<String, dynamic> extraData = const {},
Map<String, Object> extraData = const {},
bool enforceUnique = false,
}) async {
_checkInitialized();
@@ -209,7 +209,7 @@ class GetMessageResponse extends _BaseResponse {
final res = _$GetMessageResponseFromJson(json);
final jsonChannel = res.message.extraData.remove('channel');
if (jsonChannel != null) {
res.channel = ChannelModel.fromJson(jsonChannel);
res.channel = ChannelModel.fromJson(jsonChannel as Map<String, dynamic>);
}
return res;
}