copyWith method

TransitionState copyWith({
  1. int? position,
  2. bool? preview,
  3. TransitionType? type,
  4. TransitionStyle? style,
  5. int? rate,
  6. int? nextTransition,
})

Implementation

TransitionState copyWith({
  int? position,
  bool? preview,
  TransitionType? type,
  TransitionStyle? style,
  int? rate,
  int? nextTransition,
}) {
  return TransitionState(
    position: position ?? this.position,
    preview: preview ?? this.preview,
    type: type ?? this.type,
    style: style ?? this.style,
    rate: rate ?? this.rate,
    nextTransition: nextTransition ?? this.nextTransition,
  );
}