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