felangel / felangel/mason

feat: Adding a New Line to an Existing Class

Abierto
#903 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dart
Estrellas
1.1k
Forks
113
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Description:

I have the following class in my codebase:

```dart
class Routes {
static Future get initialRoute async {
try {
return login;
} catch (err) {
return login;
}
}

static const login = '/login';
static const home = '/home';

}
```

I need to append an additional line of code inside this class, specifically after the last line (`static const home`). Currently, I am considering using hooks, but it seems overly complicated for such a simple addition. Is there an easier way to accomplish this task without introducing unnecessary complexity?

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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.