You've defined this on the Workspace class, but I think it would make more sense as a member on the Folder class (or perhaps Container). So,

    class Folder {
      Future<File> createNewFile(String name) { ...}
    }