felangel / felangel/mason

feat: Adding a New Line to an Existing Class

未关闭
#903 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
1.1k
派生
113
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。