copyWith method

  1. @override
FastAppLoaderBlocState copyWith({
  1. double? progress,
  2. bool? isLoading,
  3. bool? isLoaded,
  4. dynamic error,
})
override

Creates a copy of this TModel but with the given fields replaced with the new values.

For example:

var myModel2 = myModel1.copyWith(age: 42);

Implementation

@override
FastAppLoaderBlocState copyWith({
  double? progress,
  bool? isLoading,
  bool? isLoaded,
  dynamic error,
}) {
  return FastAppLoaderBlocState(
    isLoading: isLoading ?? this.isLoading,
    isLoaded: isLoaded ?? this.isLoaded,
    progress: progress ?? this.progress,
    error: error,
  );
}