login method

Future<void> login(
  1. String name,
  2. String password
)

Logs the user in with the default USER and PASS commands.

Implementation

Future<void> login(String name, String password) async {
  await sendCommand(PopUserCommand(name));
  await sendCommand(PopPassCommand(password));
  isLoggedIn = true;
}