GlpiClient constructor Null safety

GlpiClient(
  1. String host,
  2. {String? appToken,
  3. String? sessionToken}
)

Create a GlpiClient . host is the server address, it should end with /apirest.php/ or be redirected to it. appToken is the app token used to authenticate the client. sessionToken is the session token used to authenticate the client which can be used from a previous session.

Implementation

factory GlpiClient(String host, {String? appToken, String? sessionToken}) =>
    createGlpiClient(host, appToken, sessionToken);