login method

User? login(
  1. User input
)

Implementation

User? login(User input) {
  return _userRepository?.login(input.idNumber,
      sha256.convert(utf8.encode(input.password ?? "")).toString());
}