DeviceApi constructor

const DeviceApi({
  1. required Dio dio,
  2. required String baseUrl,
  3. required String apiKey,
})

Constructs a DeviceApi instance.

dio is the Dio client for making HTTP requests. baseUrl is the base URL of the API. apiKey is the API key used for authentication.

Implementation

const DeviceApi({
  required Dio dio,
  required String baseUrl,
  required String apiKey,
})  : _dio = dio,
      _apiKey = apiKey,
      _baseUrl = baseUrl;