copyWith method

ButtonState copyWith({
  1. StateId? id,
  2. Color? color,
  3. Color? foregroundColor,
  4. Widget? child,
  5. StateWidgetBuilder? builder,
  6. bool? isCompact,
})

Implementation

ButtonState copyWith({
  StateId? id,
  Color? color,
  Color? foregroundColor,
  Widget? child,
  StateWidgetBuilder? builder,
  bool? isCompact,
}) {
  return ButtonState(
    id: id ?? this.id,
    color: color ?? this.color,
    foregroundColor: foregroundColor ?? this.foregroundColor,
    child: child ?? this.child,
    builder: builder ?? this.builder,
    isCompact: isCompact ?? this.isCompact,
  );
}