copyWith method
Returns a copy with the given fields replaced.
Implementation
M3EInteractionState copyWith({
bool? hovered,
bool? focused,
bool? pressed,
bool? dragged,
}) {
return M3EInteractionState(
hovered: hovered ?? this.hovered,
focused: focused ?? this.focused,
pressed: pressed ?? this.pressed,
dragged: dragged ?? this.dragged,
);
}