copyWith method

SceneBuilderStatus copyWith({
  1. bool? isRunning,
  2. SceneAction? currentAction,
})

Implementation

SceneBuilderStatus copyWith({
  bool? isRunning,
  SceneAction? currentAction,
}) {
  if (isRunning == this.isRunning && currentAction == this.currentAction) {
    return this;
  }
  return SceneBuilderStatus(
    isRunning: isRunning ?? this.isRunning,
    currentAction: currentAction ?? this.currentAction,
  );
}