Store the content that will be written to the file in a String or Future
@override String get content => '''$import part 'server_routes.dart'; class ServerPages { ServerPages._(); $_initialRoute static final routes = [ ]; } ''';