mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-20 15:02:07 +00:00
Update WidgetRef types to dynamic to fix updateTrackChapterRead
This commit is contained in:
parent
93a17cc797
commit
0d0f488ef3
21 changed files with 63 additions and 69 deletions
|
|
@ -59,7 +59,7 @@ final class AnimeStreamControllerProvider
|
|||
}
|
||||
|
||||
String _$animeStreamControllerHash() =>
|
||||
r'486889b2b9f71759e4d9ff147b039436572cc01e';
|
||||
r'1bca3ada0f7919439500ce8c42fa39958c1c5a7b';
|
||||
|
||||
final class AnimeStreamControllerFamily extends $Family
|
||||
with
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ final class MangaFilterDownloadedStateProvider
|
|||
}
|
||||
|
||||
String _$mangaFilterDownloadedStateHash() =>
|
||||
r'6d84bc7063be1734a0c267906a94e6b70e8b72fe';
|
||||
r'7ede8df99996399e368f5074dc1b3d4d7fa5e649';
|
||||
|
||||
final class MangaFilterDownloadedStateFamily extends $Family
|
||||
with
|
||||
|
|
@ -379,7 +379,7 @@ final class MangaFilterUnreadStateProvider
|
|||
}
|
||||
|
||||
String _$mangaFilterUnreadStateHash() =>
|
||||
r'bd96c9f42a40d0610788feda3bee5fb8662afe50';
|
||||
r'2bcea3aaccd923e415738d51511c0966a93a2900';
|
||||
|
||||
final class MangaFilterUnreadStateFamily extends $Family
|
||||
with
|
||||
|
|
|
|||
|
|
@ -701,7 +701,7 @@ final class ChapterSetIsBookmarkStateProvider
|
|||
}
|
||||
|
||||
String _$chapterSetIsBookmarkStateHash() =>
|
||||
r'091d86aebaef46d2e9f35ae9f98c12c3e423f5b3';
|
||||
r'23b56105244d0aeed6ae9c27cee1897de8a306af';
|
||||
|
||||
final class ChapterSetIsBookmarkStateFamily extends $Family
|
||||
with
|
||||
|
|
@ -800,7 +800,7 @@ final class ChapterSetIsReadStateProvider
|
|||
}
|
||||
|
||||
String _$chapterSetIsReadStateHash() =>
|
||||
r'f5af852964964170905278d563fdb03eabed53b9';
|
||||
r'b75796ed2dd03bf3167258bcdf064817e8fa69c9';
|
||||
|
||||
final class ChapterSetIsReadStateFamily extends $Family
|
||||
with $ClassFamilyOverride<ChapterSetIsReadState, void, void, void, Manga> {
|
||||
|
|
@ -893,7 +893,7 @@ final class ChapterSetDownloadStateProvider
|
|||
}
|
||||
|
||||
String _$chapterSetDownloadStateHash() =>
|
||||
r'2f35d274b76e28376b0089b2f6ee6d9d7ebcbeec';
|
||||
r'cb89abd653c018b762eb405634c7f8ca0ee8e99b';
|
||||
|
||||
final class ChapterSetDownloadStateFamily extends $Family
|
||||
with
|
||||
|
|
@ -969,7 +969,7 @@ final class ChaptersListttStateProvider
|
|||
}
|
||||
|
||||
String _$chaptersListttStateHash() =>
|
||||
r'5f1b0d2be32fcb904c12c5735f1340c8b33400a9';
|
||||
r'f45ebd9a5b1fd86b279e263813098564830c2536';
|
||||
|
||||
abstract class _$ChaptersListttState extends $Notifier<List<Chapter>> {
|
||||
List<Chapter> build();
|
||||
|
|
@ -1045,7 +1045,7 @@ final class ScanlatorsFilterStateProvider
|
|||
}
|
||||
|
||||
String _$scanlatorsFilterStateHash() =>
|
||||
r'8da89864801cd7620029d28cfb3f9bee3c67cba8';
|
||||
r'f5220568e29e0c0efaac862fb0dce166f7be3172';
|
||||
|
||||
final class ScanlatorsFilterStateFamily extends $Family
|
||||
with
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:mangayomi/main.dart';
|
||||
import 'package:mangayomi/models/manga.dart';
|
||||
import 'package:mangayomi/models/settings.dart';
|
||||
|
|
@ -21,7 +20,7 @@ class TrackState extends _$TrackState {
|
|||
Track build({
|
||||
Track? track,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) {
|
||||
return track!;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const trackStateProvider = TrackStateFamily._();
|
|||
final class TrackStateProvider extends $NotifierProvider<TrackState, Track> {
|
||||
const TrackStateProvider._({
|
||||
required TrackStateFamily super.from,
|
||||
required ({Track? track, ItemType? itemType, WidgetRef widgetRef})
|
||||
required ({Track? track, ItemType? itemType, dynamic widgetRef})
|
||||
super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
|
|
@ -58,7 +58,7 @@ final class TrackStateProvider extends $NotifierProvider<TrackState, Track> {
|
|||
}
|
||||
}
|
||||
|
||||
String _$trackStateHash() => r'cd19c5662338c7f0e508cf2f99e89c21f146d664';
|
||||
String _$trackStateHash() => r'c3e386652db112f64ce5605afeb5e7a49afbc397';
|
||||
|
||||
final class TrackStateFamily extends $Family
|
||||
with
|
||||
|
|
@ -67,7 +67,7 @@ final class TrackStateFamily extends $Family
|
|||
Track,
|
||||
Track,
|
||||
Track,
|
||||
({Track? track, ItemType? itemType, WidgetRef widgetRef})
|
||||
({Track? track, ItemType? itemType, dynamic widgetRef})
|
||||
> {
|
||||
const TrackStateFamily._()
|
||||
: super(
|
||||
|
|
@ -81,7 +81,7 @@ final class TrackStateFamily extends $Family
|
|||
TrackStateProvider call({
|
||||
Track? track,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) => TrackStateProvider._(
|
||||
argument: (track: track, itemType: itemType, widgetRef: widgetRef),
|
||||
from: this,
|
||||
|
|
@ -93,15 +93,15 @@ final class TrackStateFamily extends $Family
|
|||
|
||||
abstract class _$TrackState extends $Notifier<Track> {
|
||||
late final _$args =
|
||||
ref.$arg as ({Track? track, ItemType? itemType, WidgetRef widgetRef});
|
||||
ref.$arg as ({Track? track, ItemType? itemType, dynamic widgetRef});
|
||||
Track? get track => _$args.track;
|
||||
ItemType? get itemType => _$args.itemType;
|
||||
WidgetRef get widgetRef => _$args.widgetRef;
|
||||
dynamic get widgetRef => _$args.widgetRef;
|
||||
|
||||
Track build({
|
||||
Track? track,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
});
|
||||
@$mustCallSuper
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ final class DownloadChapterProvider
|
|||
}
|
||||
}
|
||||
|
||||
String _$downloadChapterHash() => r'5eb401736efdfb2990fda6e2d97160aaeb94aec1';
|
||||
String _$downloadChapterHash() => r'0eb04602246bb3c4dcc88397d97039dea3047cc6';
|
||||
|
||||
final class DownloadChapterFamily extends $Family
|
||||
with
|
||||
|
|
@ -215,7 +215,7 @@ final class ProcessDownloadsProvider
|
|||
}
|
||||
}
|
||||
|
||||
String _$processDownloadsHash() => r'ef5107f9674f2175a7aa18b8e4fc4555f3b6b584';
|
||||
String _$processDownloadsHash() => r'caebad3bb681d7b38de4d09325310fc08bc1cd0a';
|
||||
|
||||
final class ProcessDownloadsFamily extends $Family
|
||||
with $FunctionalFamilyOverride<FutureOr<void>, bool?> {
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ final class ReaderControllerProvider
|
|||
}
|
||||
}
|
||||
|
||||
String _$readerControllerHash() => r'25b13bbbbd961a5c3dbae3cc0ea58017d7bb5ce8';
|
||||
String _$readerControllerHash() => r'23eece0ca4e7b6cbf425488636ef942fe0d4c2bc';
|
||||
|
||||
final class ReaderControllerFamily extends $Family
|
||||
with
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ final class DoBackUpProvider
|
|||
}
|
||||
}
|
||||
|
||||
String _$doBackUpHash() => r'd16d5b6e5ed2c20988fa2d49842524d70ac0ed0d';
|
||||
String _$doBackUpHash() => r'e0d28adf6b592e34f26fd6b566151f3691f1946a';
|
||||
|
||||
final class DoBackUpFamily extends $Family
|
||||
with
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ final class GetChapterPagesProvider
|
|||
}
|
||||
}
|
||||
|
||||
String _$getChapterPagesHash() => r'129624607a92b6d3a896a03b450862ce1e941ff6';
|
||||
String _$getChapterPagesHash() => r'dab1776f81d5ef5003d4d4515fe634f56c14b795';
|
||||
|
||||
final class GetChapterPagesFamily extends $Family
|
||||
with $FunctionalFamilyOverride<FutureOr<GetChapterPagesModel>, Chapter> {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ final class GetHtmlContentProvider
|
|||
}
|
||||
}
|
||||
|
||||
String _$getHtmlContentHash() => r'fa74506c0adebbdb7a0dda5a8d16a784466b79bb';
|
||||
String _$getHtmlContentHash() => r'f1f734a95f8dfcd7197712eee61609589d76de1f';
|
||||
|
||||
final class GetHtmlContentFamily extends $Family
|
||||
with $FunctionalFamilyOverride<FutureOr<(String, EpubBook?)>, Chapter> {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ final class GetVideoListProvider
|
|||
}
|
||||
}
|
||||
|
||||
String _$getVideoListHash() => r'c54f7294e15eeede933a6e04cd9b761d82b5f74c';
|
||||
String _$getVideoListHash() => r'c99fd33a99b3fb2e2cc66353f1b8b560f3c8e184';
|
||||
|
||||
final class GetVideoListFamily extends $Family
|
||||
with
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import 'dart:io';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_web_auth_2/flutter_web_auth_2.dart';
|
||||
import 'package:mangayomi/eval/model/m_bridge.dart';
|
||||
import 'package:mangayomi/main.dart';
|
||||
|
|
@ -32,7 +31,7 @@ class Anilist extends _$Anilist implements BaseTracker {
|
|||
void build({
|
||||
required int syncId,
|
||||
ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) {}
|
||||
|
||||
Future<bool?> login() async {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const anilistProvider = AnilistFamily._();
|
|||
final class AnilistProvider extends $NotifierProvider<Anilist, void> {
|
||||
const AnilistProvider._({
|
||||
required AnilistFamily super.from,
|
||||
required ({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
required ({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
|
|
@ -58,7 +58,7 @@ final class AnilistProvider extends $NotifierProvider<Anilist, void> {
|
|||
}
|
||||
}
|
||||
|
||||
String _$anilistHash() => r'2d34818d1f8c58455b0081d4ae707cff160ea91d';
|
||||
String _$anilistHash() => r'c7ade80d69398d712596080cdba0c670724ac0da';
|
||||
|
||||
final class AnilistFamily extends $Family
|
||||
with
|
||||
|
|
@ -67,7 +67,7 @@ final class AnilistFamily extends $Family
|
|||
void,
|
||||
void,
|
||||
void,
|
||||
({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
> {
|
||||
const AnilistFamily._()
|
||||
: super(
|
||||
|
|
@ -81,7 +81,7 @@ final class AnilistFamily extends $Family
|
|||
AnilistProvider call({
|
||||
required int syncId,
|
||||
ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) => AnilistProvider._(
|
||||
argument: (syncId: syncId, itemType: itemType, widgetRef: widgetRef),
|
||||
from: this,
|
||||
|
|
@ -93,15 +93,15 @@ final class AnilistFamily extends $Family
|
|||
|
||||
abstract class _$Anilist extends $Notifier<void> {
|
||||
late final _$args =
|
||||
ref.$arg as ({int syncId, ItemType? itemType, WidgetRef widgetRef});
|
||||
ref.$arg as ({int syncId, ItemType? itemType, dynamic widgetRef});
|
||||
int get syncId => _$args.syncId;
|
||||
ItemType? get itemType => _$args.itemType;
|
||||
WidgetRef get widgetRef => _$args.widgetRef;
|
||||
dynamic get widgetRef => _$args.widgetRef;
|
||||
|
||||
void build({
|
||||
required int syncId,
|
||||
ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
});
|
||||
@$mustCallSuper
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:http_interceptor/http_interceptor.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:mangayomi/eval/model/m_bridge.dart';
|
||||
|
|
@ -40,7 +39,7 @@ class Kitsu extends _$Kitsu implements BaseTracker {
|
|||
void build({
|
||||
required int syncId,
|
||||
ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) {}
|
||||
|
||||
Future<(bool, String)> login(String username, String password) async {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const kitsuProvider = KitsuFamily._();
|
|||
final class KitsuProvider extends $NotifierProvider<Kitsu, void> {
|
||||
const KitsuProvider._({
|
||||
required KitsuFamily super.from,
|
||||
required ({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
required ({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
|
|
@ -58,7 +58,7 @@ final class KitsuProvider extends $NotifierProvider<Kitsu, void> {
|
|||
}
|
||||
}
|
||||
|
||||
String _$kitsuHash() => r'ae5836feaaa4f95953f4890be2084cd1f7a3a412';
|
||||
String _$kitsuHash() => r'8a19aa11f167df8d8cb537f746cc9dc31cad1d49';
|
||||
|
||||
final class KitsuFamily extends $Family
|
||||
with
|
||||
|
|
@ -67,7 +67,7 @@ final class KitsuFamily extends $Family
|
|||
void,
|
||||
void,
|
||||
void,
|
||||
({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
> {
|
||||
const KitsuFamily._()
|
||||
: super(
|
||||
|
|
@ -81,7 +81,7 @@ final class KitsuFamily extends $Family
|
|||
KitsuProvider call({
|
||||
required int syncId,
|
||||
ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) => KitsuProvider._(
|
||||
argument: (syncId: syncId, itemType: itemType, widgetRef: widgetRef),
|
||||
from: this,
|
||||
|
|
@ -93,15 +93,15 @@ final class KitsuFamily extends $Family
|
|||
|
||||
abstract class _$Kitsu extends $Notifier<void> {
|
||||
late final _$args =
|
||||
ref.$arg as ({int syncId, ItemType? itemType, WidgetRef widgetRef});
|
||||
ref.$arg as ({int syncId, ItemType? itemType, dynamic widgetRef});
|
||||
int get syncId => _$args.syncId;
|
||||
ItemType? get itemType => _$args.itemType;
|
||||
WidgetRef get widgetRef => _$args.widgetRef;
|
||||
dynamic get widgetRef => _$args.widgetRef;
|
||||
|
||||
void build({
|
||||
required int syncId,
|
||||
ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
});
|
||||
@$mustCallSuper
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_web_auth_2/flutter_web_auth_2.dart';
|
||||
import 'package:http_interceptor/http_interceptor.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
|
@ -37,7 +36,7 @@ class MyAnimeList extends _$MyAnimeList implements BaseTracker {
|
|||
void build({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) {}
|
||||
|
||||
Future<bool?> login() async {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const myAnimeListProvider = MyAnimeListFamily._();
|
|||
final class MyAnimeListProvider extends $NotifierProvider<MyAnimeList, void> {
|
||||
const MyAnimeListProvider._({
|
||||
required MyAnimeListFamily super.from,
|
||||
required ({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
required ({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
|
|
@ -58,7 +58,7 @@ final class MyAnimeListProvider extends $NotifierProvider<MyAnimeList, void> {
|
|||
}
|
||||
}
|
||||
|
||||
String _$myAnimeListHash() => r'6fc4940fbc11af8b3779ecc42bb3845eadc06f0f';
|
||||
String _$myAnimeListHash() => r'2aeddba481f6f97fac7ce2037f6c38f84acf755d';
|
||||
|
||||
final class MyAnimeListFamily extends $Family
|
||||
with
|
||||
|
|
@ -67,7 +67,7 @@ final class MyAnimeListFamily extends $Family
|
|||
void,
|
||||
void,
|
||||
void,
|
||||
({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
> {
|
||||
const MyAnimeListFamily._()
|
||||
: super(
|
||||
|
|
@ -81,7 +81,7 @@ final class MyAnimeListFamily extends $Family
|
|||
MyAnimeListProvider call({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) => MyAnimeListProvider._(
|
||||
argument: (syncId: syncId, itemType: itemType, widgetRef: widgetRef),
|
||||
from: this,
|
||||
|
|
@ -93,15 +93,15 @@ final class MyAnimeListFamily extends $Family
|
|||
|
||||
abstract class _$MyAnimeList extends $Notifier<void> {
|
||||
late final _$args =
|
||||
ref.$arg as ({int syncId, ItemType? itemType, WidgetRef widgetRef});
|
||||
ref.$arg as ({int syncId, ItemType? itemType, dynamic widgetRef});
|
||||
int get syncId => _$args.syncId;
|
||||
ItemType? get itemType => _$args.itemType;
|
||||
WidgetRef get widgetRef => _$args.widgetRef;
|
||||
dynamic get widgetRef => _$args.widgetRef;
|
||||
|
||||
void build({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
});
|
||||
@$mustCallSuper
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:flutter_qjs/quickjs/ffi.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_web_auth_2/flutter_web_auth_2.dart';
|
||||
import 'package:http_interceptor/http_interceptor.dart';
|
||||
import 'package:mangayomi/models/manga.dart';
|
||||
|
|
@ -37,7 +36,7 @@ class Simkl extends _$Simkl implements BaseTracker {
|
|||
void build({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) {}
|
||||
|
||||
Future<bool?> login() async {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const simklProvider = SimklFamily._();
|
|||
final class SimklProvider extends $NotifierProvider<Simkl, void> {
|
||||
const SimklProvider._({
|
||||
required SimklFamily super.from,
|
||||
required ({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
required ({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
|
|
@ -58,7 +58,7 @@ final class SimklProvider extends $NotifierProvider<Simkl, void> {
|
|||
}
|
||||
}
|
||||
|
||||
String _$simklHash() => r'f2770c0a3f3f6c0730aec2b5128a9bffe19eeb4d';
|
||||
String _$simklHash() => r'a5311b207d0bfb5b34911633ee73d5d77ebde6cf';
|
||||
|
||||
final class SimklFamily extends $Family
|
||||
with
|
||||
|
|
@ -67,7 +67,7 @@ final class SimklFamily extends $Family
|
|||
void,
|
||||
void,
|
||||
void,
|
||||
({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
> {
|
||||
const SimklFamily._()
|
||||
: super(
|
||||
|
|
@ -81,7 +81,7 @@ final class SimklFamily extends $Family
|
|||
SimklProvider call({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) => SimklProvider._(
|
||||
argument: (syncId: syncId, itemType: itemType, widgetRef: widgetRef),
|
||||
from: this,
|
||||
|
|
@ -93,15 +93,15 @@ final class SimklFamily extends $Family
|
|||
|
||||
abstract class _$Simkl extends $Notifier<void> {
|
||||
late final _$args =
|
||||
ref.$arg as ({int syncId, ItemType? itemType, WidgetRef widgetRef});
|
||||
ref.$arg as ({int syncId, ItemType? itemType, dynamic widgetRef});
|
||||
int get syncId => _$args.syncId;
|
||||
ItemType? get itemType => _$args.itemType;
|
||||
WidgetRef get widgetRef => _$args.widgetRef;
|
||||
dynamic get widgetRef => _$args.widgetRef;
|
||||
|
||||
void build({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
});
|
||||
@$mustCallSuper
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_web_auth_2/flutter_web_auth_2.dart';
|
||||
import 'package:http_interceptor/http_interceptor.dart';
|
||||
import 'package:mangayomi/eval/model/m_bridge.dart';
|
||||
|
|
@ -38,7 +37,7 @@ class TraktTv extends _$TraktTv implements BaseTracker {
|
|||
void build({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) {}
|
||||
|
||||
Future<bool?> login() async {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const traktTvProvider = TraktTvFamily._();
|
|||
final class TraktTvProvider extends $NotifierProvider<TraktTv, void> {
|
||||
const TraktTvProvider._({
|
||||
required TraktTvFamily super.from,
|
||||
required ({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
required ({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
|
|
@ -58,7 +58,7 @@ final class TraktTvProvider extends $NotifierProvider<TraktTv, void> {
|
|||
}
|
||||
}
|
||||
|
||||
String _$traktTvHash() => r'25c72f51804b49771a10d9a7ad2ca5f70581082e';
|
||||
String _$traktTvHash() => r'6843c07d55eb4daec6fd99a14037d2cefd51f8de';
|
||||
|
||||
final class TraktTvFamily extends $Family
|
||||
with
|
||||
|
|
@ -67,7 +67,7 @@ final class TraktTvFamily extends $Family
|
|||
void,
|
||||
void,
|
||||
void,
|
||||
({int syncId, ItemType? itemType, WidgetRef widgetRef})
|
||||
({int syncId, ItemType? itemType, dynamic widgetRef})
|
||||
> {
|
||||
const TraktTvFamily._()
|
||||
: super(
|
||||
|
|
@ -81,7 +81,7 @@ final class TraktTvFamily extends $Family
|
|||
TraktTvProvider call({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
}) => TraktTvProvider._(
|
||||
argument: (syncId: syncId, itemType: itemType, widgetRef: widgetRef),
|
||||
from: this,
|
||||
|
|
@ -93,15 +93,15 @@ final class TraktTvFamily extends $Family
|
|||
|
||||
abstract class _$TraktTv extends $Notifier<void> {
|
||||
late final _$args =
|
||||
ref.$arg as ({int syncId, ItemType? itemType, WidgetRef widgetRef});
|
||||
ref.$arg as ({int syncId, ItemType? itemType, dynamic widgetRef});
|
||||
int get syncId => _$args.syncId;
|
||||
ItemType? get itemType => _$args.itemType;
|
||||
WidgetRef get widgetRef => _$args.widgetRef;
|
||||
dynamic get widgetRef => _$args.widgetRef;
|
||||
|
||||
void build({
|
||||
required int syncId,
|
||||
required ItemType? itemType,
|
||||
required WidgetRef widgetRef,
|
||||
required dynamic widgetRef,
|
||||
});
|
||||
@$mustCallSuper
|
||||
@override
|
||||
|
|
|
|||
Loading…
Reference in a new issue