felangel / felangel/mason

feat: Adding a New Line to an Existing Class

オープン
#903 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。