file method

File file(
  1. String filePath, {
  2. Context? pathContext,
  3. FileFactory fileFactory = File.new,
})

Returns a File within the Directory

Directory androidDir = Directory('flutter-app/android');
File manifestFile = androidDir.file("app/src/main/AndroidManifest.xml");

Implementation

File file(
  String filePath, {
  lib_path.Context? pathContext,
  FileFactory fileFactory = File.new,
}) {
  pathContext ??= lib_path.context;
  final newPath = pathContext.join(absolute.path, filePath);
  return fileFactory(newPath);
}