opt: ActionItem (#974)

This commit is contained in:
My-Responsitories
2025-08-10 00:29:58 +08:00
committed by GitHub
parent fac37e59aa
commit aaad7fc6dc
15 changed files with 550 additions and 531 deletions

View File

@@ -30,6 +30,23 @@ mixin SearchKeywordMixin {
void subDispose() {
sub?.cancel();
ctr?.close();
sub = null;
ctr = null;
}
}
abstract class SearchState<T extends StatefulWidget> extends State<T>
with SearchKeywordMixin {
@override
void dispose() {
subDispose();
super.dispose();
}
@override
void initState() {
super.initState();
subInit();
}
}