Skip to content

Commit e57d1c6

Browse files
committed
theme [nfc]: Make DesignVariables.lerp's other non-nullable
1 parent b287770 commit e57d1c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/widgets/theme.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,17 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
131131
}
132132

133133
@override
134-
DesignVariables lerp(DesignVariables? other, double t) {
134+
DesignVariables lerp(DesignVariables other, double t) {
135135
if (identical(this, other)) {
136136
return this;
137137
}
138138
return DesignVariables._(
139-
bgMain: Color.lerp(bgMain, other?.bgMain, t)!,
140-
bgTopBar: Color.lerp(bgTopBar, other?.bgTopBar, t)!,
141-
borderBar: Color.lerp(borderBar, other?.borderBar, t)!,
142-
icon: Color.lerp(icon, other?.icon, t)!,
143-
title: Color.lerp(title, other?.title, t)!,
144-
streamColorSwatches: streamColorSwatches.lerp(other?.streamColorSwatches, t),
139+
bgMain: Color.lerp(bgMain, other.bgMain, t)!,
140+
bgTopBar: Color.lerp(bgTopBar, other.bgTopBar, t)!,
141+
borderBar: Color.lerp(borderBar, other.borderBar, t)!,
142+
icon: Color.lerp(icon, other.icon, t)!,
143+
title: Color.lerp(title, other.title, t)!,
144+
streamColorSwatches: streamColorSwatches.lerp(other.streamColorSwatches, t),
145145
);
146146
}
147147
}

0 commit comments

Comments
 (0)