copyWith method

MatchAction<T>? copyWith({
  1. MatchActionType? type,
  2. bool? isEnabled,
})

Implementation

MatchAction<T>? copyWith({
  MatchActionType? type,
  bool? isEnabled,
}) =>
    MatchAction<T>(
      key: key,
      predicate: predicate,
      type: type ?? this.type,
      isEnabled: isEnabled ?? this.isEnabled,
    );