copyWith method

AccountInfo copyWith({
  1. String? accountId,
  2. String? name,
})

Implementation

AccountInfo copyWith({
  String? accountId,
  String? name,
}) {
  return AccountInfo(
    accountId: accountId ?? this.accountId,
    name: name ?? this.name,
  );
}