lerp method
Linearly interpolates between this theme and another theme.
The t argument is a value between 0 and 1, where 0 returns this theme
and 1 returns the other theme.
Implementation
@override
RRulePickerThemeData lerp(covariant RRulePickerThemeData? other, double t) {
if (other == null || identical(this, other)) {
return this;
}
return RRulePickerThemeData(
labelStyle: TextStyle.lerp(labelStyle, other.labelStyle, t),
padding: EdgeInsetsGeometry.lerp(padding, other.padding, t),
headerTheme: RRulePickerHeaderThemeData.lerp(
headerTheme,
other.headerTheme,
t,
),
dropdownTheme: RRulePickerDropdownThemeData.lerp(
dropdownTheme,
other.dropdownTheme,
t,
),
topDropdownTheme: RRulePickerDropdownThemeData.lerp(
topDropdownTheme,
other.topDropdownTheme,
t,
),
textFieldTheme: RRulePickerTextFieldThemeData.lerp(
textFieldTheme,
other.textFieldTheme,
t,
),
segmentedButtonStyle: ButtonStyle.lerp(
segmentedButtonStyle,
other.segmentedButtonStyle,
t,
),
splitSegmentedButtonStyle: ButtonStyle.lerp(
splitSegmentedButtonStyle,
other.splitSegmentedButtonStyle,
t,
),
);
}