implement custom tracking policy
This commit is contained in:
@@ -151,6 +151,11 @@ RouteBase get $settingsRoute => GoRouteData.$route(
|
||||
name: 'TrackingProtectionExceptionsRoute',
|
||||
factory: $TrackingProtectionExceptionsRoute._fromState,
|
||||
),
|
||||
GoRouteData.$route(
|
||||
path: 'custom_tracking_protection',
|
||||
name: 'CustomTrackingProtectionRoute',
|
||||
factory: $CustomTrackingProtectionRoute._fromState,
|
||||
),
|
||||
GoRouteData.$route(
|
||||
path: 'error_logs',
|
||||
name: 'ErrorLogsRoute',
|
||||
@@ -478,6 +483,28 @@ mixin $TrackingProtectionExceptionsRoute on GoRouteData {
|
||||
void replace(BuildContext context) => context.replace(location);
|
||||
}
|
||||
|
||||
mixin $CustomTrackingProtectionRoute on GoRouteData {
|
||||
static CustomTrackingProtectionRoute _fromState(GoRouterState state) =>
|
||||
CustomTrackingProtectionRoute();
|
||||
|
||||
@override
|
||||
String get location =>
|
||||
GoRouteData.$location('/settings/custom_tracking_protection');
|
||||
|
||||
@override
|
||||
void go(BuildContext context) => context.go(location);
|
||||
|
||||
@override
|
||||
Future<T?> push<T>(BuildContext context) => context.push<T>(location);
|
||||
|
||||
@override
|
||||
void pushReplacement(BuildContext context) =>
|
||||
context.pushReplacement(location);
|
||||
|
||||
@override
|
||||
void replace(BuildContext context) => context.replace(location);
|
||||
}
|
||||
|
||||
mixin $ErrorLogsRoute on GoRouteData {
|
||||
static ErrorLogsRoute _fromState(GoRouterState state) => ErrorLogsRoute();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user