felangel / felangel/mason

feat: Adding a New Line to an Existing Class

Open
#903 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.1k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.