copyWith method

MenuItemMaterialStateProperty<T> copyWith({
  1. T? enabled,
  2. T? disabled,
  3. T? hovered,
  4. T? focused,
  5. T? pressed,
})

Implementation

MenuItemMaterialStateProperty<T> copyWith({
  T? enabled,
  T? disabled,
  T? hovered,
  T? focused,
  T? pressed
}) {
  return ResolvedMenuItemMaterialStateProperty<T>(
    enabled: enabled ?? this.enabled,
    disabled: disabled ?? this.disabled,
    hovered: hovered ?? this.hovered,
    focused: focused ?? this.focused,
    pressed: pressed ?? this.pressed
  );
}