StreamingCredentials constructor

StreamingCredentials({
  1. required String username,
  2. required String password,
})

Implementation

StreamingCredentials({required this.username, required this.password}) {
  if (username.isEmpty) {
    throw ArgumentError.value(username, 'username', 'Must not be empty.');
  }
  if (password.isEmpty) {
    throw ArgumentError.value(password, 'password', 'Must not be empty.');
  }
}