mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-27 20:38:50 +05:00
fix: syntax error in downloads_provider.dart
Fixed duplicated code that caused compilation error:
- Removed duplicate _setError method definition
- Fixed parameter list: void _setError(String? error, [String? stackTrace])
- File now compiles correctly
Error was:
lib/presentation/providers/downloads_provider.dart:173:2: Error: Expected a declaration, but got '?'.
}? error) {
^
Fixed by properly replacing the old method with new signature.
This commit is contained in:
@@ -166,12 +166,9 @@ class DownloadsProvider with ChangeNotifier {
|
|||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
void _setError(String? error) {
|
void _setError(String? error, [String? stackTrace]) {
|
||||||
_error = error;
|
|
||||||
notifyListeners();
|
|
||||||
}
|
|
||||||
}? error) {
|
|
||||||
_error = error;
|
_error = error;
|
||||||
|
_stackTrace = stackTrace;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user