copyWith method

ProfileState copyWith({
  1. AuthUser? user,
  2. bool? isLoading,
  3. String? error,
})

Implementation

ProfileState copyWith({AuthUser? user, bool? isLoading, String? error}) =>
    ProfileState(
      user: user ?? this.user,
      isLoading: isLoading ?? this.isLoading,
      error: error,
    );