copyWith method

ElButtonStyle copyWith({
  1. ElBoxStyle? boxStyle,
  2. TextStyle? textStyle,
  3. IconThemeData? iconThemeData,
  4. bool? block,
  5. bool? skipTraversal,
  6. MouseCursor? cursor,
  7. MouseCursor? loadingCursor,
  8. MouseCursor? disabledCursor,
})

Implementation

ElButtonStyle copyWith({
  ElBoxStyle? boxStyle,
  TextStyle? textStyle,
  IconThemeData? iconThemeData,
  bool? block,
  bool? skipTraversal,
  MouseCursor? cursor,
  MouseCursor? loadingCursor,
  MouseCursor? disabledCursor,
}) {
  return ElButtonStyle(
    boxStyle: this.boxStyle == null
        ? boxStyle
        : this.boxStyle!.merge(boxStyle),
    textStyle: this.textStyle == null
        ? textStyle
        : this.textStyle!.merge(textStyle),
    iconThemeData: this.iconThemeData == null
        ? iconThemeData
        : this.iconThemeData!.merge(iconThemeData),
    block: block ?? this.block,
    skipTraversal: skipTraversal ?? this.skipTraversal,
    cursor: cursor ?? this.cursor,
    loadingCursor: loadingCursor ?? this.loadingCursor,
    disabledCursor: disabledCursor ?? this.disabledCursor,
  );
}