init method
Initialize instance by fetching data from GitHub
Implementation
Future<void> init() async {
final _issService = gh.IssuesService(github);
try {
_issue = await _issService.get(_slug, id);
} catch (e) {
log.shout(e);
rethrow;
}
pullRequest = _issue!.pullRequest;
body = _issue!.body;
log.fine('Issue data was synced');
}