refactoring
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter_mozilla_components/flutter_mozilla_components.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'tab_session.g.dart';
|
||||
@@ -49,3 +50,8 @@ class TabSession extends _$TabSession {
|
||||
: GeckoSessionService.forActiveTab();
|
||||
}
|
||||
}
|
||||
|
||||
@Riverpod()
|
||||
Raw<TabSession> selectedTabSessionNotifier(Ref ref) {
|
||||
return ref.watch(tabSessionProvider(tabId: null).notifier);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user