checkPrivate method

void checkPrivate(
  1. bool isPrivate
)

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!');
  }
}