checkPrivate method
Checks if the account is private
Implementation
void checkPrivate(bool isPrivate) {
if (isPrivate) {
log('Private account!\nPlease enter username of a public account!',
name: 'Insta Public API');
throw Exception(
'Private account!\nPlease enter username of a public account!');
}
}