GhSnitch class

A class that provides functionality to report issues and bugs on GitHub.

This class provides static methods for initializing the GhSnitch instance, reporting issues, submitting comments, and listening to exceptions thrown in the app.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getReportsComments() Future<Issue>
Retrieves the comments for all reported issues.
initialize({required String token, required String owner, required String repo, int maxDuplicatedReports = 20, OnReport? onReport}) → dynamic
Initializes the GhSnitch instance with a GitHub token, owner of the repository, and the repository name.
listenToExceptions({List<String>? assignees, int? milestone, List<String>? labels}) → void
Listens to exceptions thrown in the app and reports them as issues on GitHub.
openReportScreen(BuildContext context) → dynamic
report({required String title, required String body, Uint8List? screenShot, String? screenShotBranch, List<String>? labels, List<String>? assignees, int? milestone, String? userId}) Future<bool>
Reports an issue or bug on GitHub with the given title and body.
submitComment(String reportId, String comment) Future<bool>
Submits a comment to the specified report ID.