copyWith method

ConsentState copyWith({
  1. bool? isLoading,
  2. String? error,
})

Implementation

ConsentState copyWith({
  bool? isLoading,
  String? error,
}) {
  return ConsentState(
    isLoading: isLoading ?? this.isLoading,
    error: error ?? this.error,
  );
}