Skip to content

Commit e53950f

Browse files
committed
content [nfc]: Make ContentTheme.lerp's other non-nullable
1 parent 99f6a8b commit e53950f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/widgets/content.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
9999
}
100100

101101
@override
102-
ContentTheme lerp(ContentTheme? other, double t) {
102+
ContentTheme lerp(ContentTheme other, double t) {
103103
if (identical(this, other)) {
104104
return this;
105105
}
106106
return ContentTheme._(
107-
textStylePlainParagraph: TextStyle.lerp(textStylePlainParagraph, other?.textStylePlainParagraph, t)!,
108-
codeBlockTextStyles: codeBlockTextStyles.lerp(other?.codeBlockTextStyles, t),
109-
textStyleError: TextStyle.lerp(textStyleError, other?.textStyleError, t)!,
110-
textStyleErrorCode: TextStyle.lerp(textStyleErrorCode, other?.textStyleErrorCode, t)!,
107+
textStylePlainParagraph: TextStyle.lerp(textStylePlainParagraph, other.textStylePlainParagraph, t)!,
108+
codeBlockTextStyles: codeBlockTextStyles.lerp(other.codeBlockTextStyles, t),
109+
textStyleError: TextStyle.lerp(textStyleError, other.textStyleError, t)!,
110+
textStyleErrorCode: TextStyle.lerp(textStyleErrorCode, other.textStyleErrorCode, t)!,
111111
);
112112
}
113113
}

0 commit comments

Comments
 (0)