fix: Crashing due to incorrect type casting

This commit is contained in:
PapaTutuWawa 2022-07-28 12:14:43 +02:00
parent 680bbe1bb4
commit f966af223a
2 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,8 @@ class MoxdnsAndroidPlugin extends MoxdnsPlatform {
if (record == null) {
continue;
}
final rr = Map<String, String>.from(record as Map<String, String>);
// ignore: argument_type_not_assignable
final rr = Map<String, String>.from(record);
records.add(
SrvRecord(
rr['target']!,

View File

@ -26,7 +26,8 @@ class MoxdnsLinuxPlugin extends MoxdnsPlatform {
if (record == null) {
continue;
}
final rr = Map<String, String>.from(record as Map<String, String>);
// ignore: argument_type_not_assignable
final rr = Map<String, String>.from(record);
records.add(
SrvRecord(
rr['target']!,