getPublic method

Future<Directory> getPublic()

Implementation

Future<Directory> getPublic() async {
  final root = await getRoot();

  if (root == null) {
    throw Exception('Failed to find project root');
  }

  return root.childDirectory('public');
}