felangel / felangel/mason

feat: Adding a New Line to an Existing Class

Đang mở
#903 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
1.1k
Fork
113
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.