The result of writeText is a Future, but it doesn't return any value. It just lets you know the operation completed. The line should look like this:

    entry.writeText(content).then((_) {