Describe the bug
A clear and concise description of what the bug is.
Getting the error below while running the command to generate translated json files.
flutter pub run localized:main -t -l ar,ca,de,el,en,fa,fil,fr,it,ko,pt,ru,sw,ur,vi,zh -p Google -k API_KEY -n25 Unhandled exception: type 'List<String?>' is not a subtype of type 'List<String>' of 'stringInOutList' #0 _TypeError._throwNew (dart:core-patch/errors_patch.dart:98:34) #1 _batchTranslate.<anonymous closure> (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:297:43) #2 _batchTranslate.<anonymous closure> (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:282:50) #3 Future.forEach.<anonymous closure> (dart:async/future.dart:495:26) #4 Future.doWhile.<anonymous closure> (dart:async/future.dart:535:26) #5 _RootZone.runUnaryGuarded (dart:async/zone.dart:1546:10) #6 _RootZone.bindUnaryCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1585:26) #7 Future.doWhile (dart:async/future.dart:551:18) #8 Future.forEach (dart:async/future.dart:493:12) #9 _batchTranslate (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:282:18) #10 _translateLocalizedFiles (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:265:15) <asynchronous suspension> #11 main (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:190:5) <asynchronous suspension> pub finished with exit code 255 evans@wanyoike:~/IdeaProjects/status$ flutter pub run localized:main -t -l ar,ca,de,el,en,fa,fil,fr,it,ko,pt,ru,sw,ur,vi,zh -p Google -k AIzaSyAXHG2wrU135NpkROiIG3HtfpSL1U7MulA -n 25 Unhandled exception: type 'List<String?>' is not a subtype of type 'List<String>' of 'stringInOutList' #0 _TypeError._throwNew (dart:core-patch/errors_patch.dart:98:34) #1 _batchTranslate.<anonymous closure> (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:297:43) #2 _batchTranslate.<anonymous closure> (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:282:50) #3 Future.forEach.<anonymous closure> (dart:async/future.dart:495:26) #4 Future.doWhile.<anonymous closure> (dart:async/future.dart:535:26) #5 _RootZone.runUnaryGuarded (dart:async/zone.dart:1546:10) #6 _RootZone.bindUnaryCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1585:26) #7 Future.doWhile (dart:async/future.dart:551:18) #8 Future.forEach (dart:async/future.dart:493:12) #9 _batchTranslate (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:282:18) #10 _translateLocalizedFiles (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:265:15) <asynchronous suspension> #11 main (file:///home/evans/sdks/flutter/.pub-cache/hosted/pub.dartlang.org/localized-2.1.0-nullsafety.0/bin/main.dart:190:5) <asynchronous suspension> pub finished with exit code 255
I am on Linux Ubuntu.
I noticed that even after adding version 2.0.6 on pubspec.yaml the null safety version is downloaded.