import'package:file/file.dart';import'package:flutter_tools/src/base/file_system.dart';import'package:flutter_tools/src/flutter_manifest.dart';/// Writes a schemaData used for validating pubspec.yaml files when parsing/// asset information.voidwriteSchemaFile(FileSystemfilesystem,StringschemaData){finalStringschemaPath=buildSchemaPath(filesystem);finalFileschemaFile=filesystem.file(schemaPath);finalStringschemaDir=buildSchemaDir(filesystem);filesystem.directory(schemaDir).createSync(recursive:true);schemaFile.writeAsStringSync(schemaData);}/// Writes an empty schemaData that will validate any pubspec.yaml file.voidwriteEmptySchemaFile(FileSystemfilesystem){writeSchemaFile(filesystem,'{}');}