copyWith method

SemanticsActionEvent copyWith({
  1. SemanticsAction? type,
  2. int? viewId,
  3. int? nodeId,
  4. Object? arguments = _noArgumentPlaceholder,
})

Create a clone of the SemanticsActionEvent but with provided parameters replaced.

Implementation

SemanticsActionEvent copyWith({
  SemanticsAction? type,
  int? viewId,
  int? nodeId,
  Object? arguments = _noArgumentPlaceholder,
}) {
  return SemanticsActionEvent(
    type: type ?? this.type,
    viewId: viewId ?? this.viewId,
    nodeId: nodeId ?? this.nodeId,
    arguments: arguments == _noArgumentPlaceholder ? this.arguments : arguments,
  );
}