Account constructor

Account({
  1. required String username,
  2. required Server server,
})

Default constructor for Account.

Params:

  • username: the username associated with the Account.
  • server: The object describing the server where the account is defined.

Implementation

factory Account({required String username, required Server server}) {
  return AccountImpl(username: username, server: server);
}