GitLab class

The main class and entry point to use this library.

See the library documentation for information on how to use it.

Constructors

GitLab(String token, {String host = 'gitlab.com', String scheme = 'https', bool assumeUtf8 = true})

Properties

assumeUtf8 bool
Assume utf8 within in response bodies.
final
hashCode int
The hash code for this object.
no setterinherited
host String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
final
token String
final

Methods

buildUri(Iterable<String> pathSegments, {Map<String, dynamic>? queryParameters, int? page, int? perPage}) Uri
This function is used internally to build the URIs for API calls.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
project(int id) ProjectsApi
Get the ProjectsApi for this id.
request(Uri uri, {HttpMethod method = HttpMethod.get, String? body, bool asJson = true}) Future
Returns the decoded JSON.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

apiVersion → const String