anchor.diff:        // wrong string stored.
         for (final XmlElement resources in document.findAllElements('resources')) {
           for (final XmlElement element in resources.findElements('string')) {
  -          final String name = element.getAttribute('name');
  +          final String? name = element.getAttribute('name');
             if (requiredEntriesMap.containsKey(name)) {
               if (element.text != null && element.text != requiredEntriesMap[name]) {
  -              element.innerText = requiredEntriesMap[name];
  +              element.innerText = requiredEntriesMap[name]!;
                 modified = true;
               }
               requiredEntriesMap.remove(name);
             }
           }
  -        for (final String key in requiredEntriesMap.keys) {
  +        requiredEntriesMap.forEach((String key, String value) {
             modified = true;
             final XmlElement newStringElement = XmlElement(
               XmlName.fromString('string'),
  
positive.code: // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  // @dart = 2.8
  
  import 'package:meta/meta.dart';
  import 'package:xml/xml.dart';
  
  import '../base/deferred_component.dart';
  
negative.code:   // generates default build.gradle and AndroidManifest.xml for the deferred component.
    Future<List<File>> _setupComponentFiles(Directory outputDir) async {
      Template template;
      final Directory? templatesDir = _templatesDir;
      if (templatesDir != null) {
        final Directory templateComponentDir = templatesDir.childDirectory('module${globals.fs.path.separator}android${globals.fs.path.separator}deferred_component');
        template = Template(templateComponentDir, templateComponentDir, templatesDir,
          fileSystem: globals.fs,
          templateManifest: null,
          logger: logger,
  