@@ -129,6 +129,7 @@ void main() {
129129 group ('beforeScreenshot' , () {
130130 testWidgets ('does add screenshot if beforeScreenshot returns true' ,
131131 (tester) async {
132+ // ignore: deprecated_member_use_from_same_package
132133 fixture.options.beforeScreenshot = (SentryEvent event, {Hint ? hint}) {
133134 return true ;
134135 };
@@ -138,6 +139,7 @@ void main() {
138139
139140 testWidgets ('does add screenshot if async beforeScreenshot returns true' ,
140141 (tester) async {
142+ // ignore: deprecated_member_use_from_same_package
141143 fixture.options.beforeScreenshot =
142144 (SentryEvent event, {Hint ? hint}) async {
143145 await Future <void >.delayed (Duration (milliseconds: 1 ));
@@ -149,6 +151,7 @@ void main() {
149151
150152 testWidgets ('does not add screenshot if beforeScreenshot returns false' ,
151153 (tester) async {
154+ // ignore: deprecated_member_use_from_same_package
152155 fixture.options.beforeScreenshot = (SentryEvent event, {Hint ? hint}) {
153156 return false ;
154157 };
@@ -159,6 +162,7 @@ void main() {
159162 testWidgets (
160163 'does not add screenshot if async beforeScreenshot returns false' ,
161164 (tester) async {
165+ // ignore: deprecated_member_use_from_same_package
162166 fixture.options.beforeScreenshot =
163167 (SentryEvent event, {Hint ? hint}) async {
164168 await Future <void >.delayed (Duration (milliseconds: 1 ));
@@ -171,6 +175,7 @@ void main() {
171175 testWidgets ('does add screenshot if beforeScreenshot throws' ,
172176 (tester) async {
173177 fixture.options.automatedTestMode = false ;
178+ // ignore: deprecated_member_use_from_same_package
174179 fixture.options.beforeScreenshot = (SentryEvent event, {Hint ? hint}) {
175180 throw Error ();
176181 };
@@ -181,6 +186,7 @@ void main() {
181186 testWidgets ('does add screenshot if async beforeScreenshot throws' ,
182187 (tester) async {
183188 fixture.options.automatedTestMode = false ;
189+ // ignore: deprecated_member_use_from_same_package
184190 fixture.options.beforeScreenshot =
185191 (SentryEvent event, {Hint ? hint}) async {
186192 await Future <void >.delayed (Duration (milliseconds: 1 ));
@@ -195,6 +201,7 @@ void main() {
195201 SentryEvent ? beforeScreenshotEvent;
196202 Hint ? beforeScreenshotHint;
197203
204+ // ignore: deprecated_member_use_from_same_package
198205 fixture.options.beforeScreenshot = (SentryEvent event, {Hint ? hint}) {
199206 beforeScreenshotEvent = event;
200207 beforeScreenshotHint = hint;
0 commit comments