copyWith method

  1. @override
FastAppOnboardingBlocState copyWith({
  1. bool? isInitializing,
  2. bool? isInitialized,
  3. int? currentStepIndex,
  4. bool? isCompleted,
})
override

Creates a new FastAppOnboardingBlocState instance with updated properties.

If a parameter is not provided, the corresponding property of the current instance is used instead.

Implementation

@override
FastAppOnboardingBlocState copyWith({
  bool? isInitializing,
  bool? isInitialized,
  int? currentStepIndex,
  bool? isCompleted,
}) =>
    FastAppOnboardingBlocState(
      isInitializing: isInitializing ?? this.isInitializing,
      isInitialized: isInitialized ?? this.isInitialized,
      currentStepIndex: currentStepIndex ?? this.currentStepIndex,
      isCompleted: isCompleted ?? this.isCompleted,
    );