Skip to content

Commit

Permalink
theme [nfc]: Make DesignVariables.lerp's other non-nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Jun 26, 2024
1 parent b287770 commit e57d1c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/widgets/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,17 @@ class DesignVariables extends ThemeExtension<DesignVariables> {
}

@override
DesignVariables lerp(DesignVariables? other, double t) {
DesignVariables lerp(DesignVariables other, double t) {
if (identical(this, other)) {
return this;
}
return DesignVariables._(
bgMain: Color.lerp(bgMain, other?.bgMain, t)!,
bgTopBar: Color.lerp(bgTopBar, other?.bgTopBar, t)!,
borderBar: Color.lerp(borderBar, other?.borderBar, t)!,
icon: Color.lerp(icon, other?.icon, t)!,
title: Color.lerp(title, other?.title, t)!,
streamColorSwatches: streamColorSwatches.lerp(other?.streamColorSwatches, t),
bgMain: Color.lerp(bgMain, other.bgMain, t)!,
bgTopBar: Color.lerp(bgTopBar, other.bgTopBar, t)!,
borderBar: Color.lerp(borderBar, other.borderBar, t)!,
icon: Color.lerp(icon, other.icon, t)!,
title: Color.lerp(title, other.title, t)!,
streamColorSwatches: streamColorSwatches.lerp(other.streamColorSwatches, t),
);
}
}
Expand Down

0 comments on commit e57d1c6

Please sign in to comment.