addPubTasks function
void
addPubTasks()
Enables tasks for uploading the package to Pub.
Implementation
void addPubTasks() {
if (_addedPubTasks) return;
_addedPubTasks = true;
pubCredentials.freeze();
addTask(GrinderTask('pkg-pub-deploy',
taskFunction: () => _deploy(),
description: 'Deploy the package to Pub.'));
}