Skip to content

Commit 8fda051

Browse files
Remove not-null cast from document info attributes in tests
1 parent 1b8dcb5 commit 8fda051

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

example/test/utils/pdf_test_utils.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class PdfTestUtils {
2020
{TestDocInfo? info}) async {
2121
final pdf = Optional.ofNullable(info)
2222
.map((i) => pw.Document(
23-
title: i.title!,
24-
author: i.author!,
25-
creator: i.creator!,
26-
subject: i.subject!,
27-
keywords: i.keywords!))
23+
title: i.title,
24+
author: i.author,
25+
creator: i.creator,
26+
subject: i.subject,
27+
keywords: i.keywords))
2828
.orElse(pw.Document());
2929

3030
final pdfPages = pages

0 commit comments

Comments
 (0)