copyWith method

ChatConnectionState copyWith({
  1. bool? isLoading,
  2. String? name,
  3. String? phoneNo,
  4. String? email,
})

Implementation

ChatConnectionState copyWith(
        {bool? isLoading, String? name, String? phoneNo, String? email}) =>
    ChatConnectionState(
      isLoading: isLoading ?? false,
      name: name ?? this.name,
      email: email ?? this.email,
      phoneNo: phoneNo ?? this.phoneNo,
    );