mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-20 23:22:07 +00:00
15 lines
495 B
Dart
15 lines
495 B
Dart
import 'package:mangayomi/eval/dart/service.dart';
|
|
import 'package:mangayomi/models/source.dart';
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
part 'supports_latest.g.dart';
|
|
|
|
@riverpod
|
|
bool supportsLatest(SupportsLatestRef ref, {required Source source}) {
|
|
bool? supportsLatest;
|
|
if (source.sourceCodeLanguage == SourceCodeLanguage.dart) {
|
|
supportsLatest = DartExtensionService(source).supportsLatest;
|
|
} else {
|
|
supportsLatest = true;
|
|
}
|
|
return supportsLatest;
|
|
}
|