AOSSIE-Org / AOSSIE-Org/NeuroTrack

fix(therapist): Method marked @override does not override any inherited method

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

Mô tả

## Summary

In the therapist app, `flutter analyze` reports:

```
warning - The method doesn't override an inherited method
lib/repository/supabase_therapist_repository.dart:114 - override_on_non_overriding_member
```

A method at line 114 of `supabase_therapist_repository.dart` is annotated with `@override` but the parent class/interface has no such method to override. This is a logic error — either the annotation is spurious, or the method signature doesn't match the interface definition and a bug is silently hiding.

## Steps to Reproduce

```
cd therapist
flutter analyze
```

## Expected Behavior

Every `@override` annotation correctly points to a method that exists in the parent type.

## Fix

- If the `@override` is unintentional: remove the annotation.
- If the method is meant to implement an interface method: fix the method name/signature to match the interface.

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.