Question: Is it possible to include a line of code in a file that already exists?
- Lenguaje dominante
- Dart
- Estrellas
- 1.1k
- Forks
- 113
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Can someone help me with this please?
I need to be able to put a line of code inside a class of a file that already exists.
Example:
I have the file Routes.dart
```
class Routes {
static const INITIAL = '/';
static const INTRO = '/intro';
}
```
And I need to put this line inside the Routes class in Routes.dart
```
static const {{name.constantCase()}} = '/{{name.paramCase()}}';
```
Let's say the name of the route is "generic route"
So the complete file would be
```
class Routes {
static const INITIAL = '/';
static const INTRO = '/intro';
static const GENERIC_ROUTE = '/generic-route';
}
```
I appreciate who can help me.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.