getSubItems method Null safety

Future<List<Map<String, dynamic>>> getSubItems(
  1. GlpiItemType mainItemtype,
  2. int mainItemId,
  3. GlpiItemType subItemType,
  4. {bool expandDropdowns = false,
  5. bool getHateoas = true,
  6. bool onlyId = false,
  7. int rangeStart = 0,
  8. int rangeLimit = 50,
  9. String sort = 'id',
  10. String order = 'ASC',
  11. List? addKeysNames}
)

Return the sub-items of subItemType the item identified by the mainItemId and of type mainItemtype Will throw an Exception if the request fails or if the selected id is incorrect. Reference: https://github.com/glpi-project/glpi/blob/master/apirest.md#get-sub-items

Implementation

Future<List<Map<String, dynamic>>> getSubItems(
    GlpiItemType mainItemtype, int mainItemId, GlpiItemType subItemType,
    {bool expandDropdowns = false,
    bool getHateoas = true,
    bool onlyId = false,
    int rangeStart = 0,
    int rangeLimit = 50,
    String sort = 'id',
    String order = 'ASC',
    List? addKeysNames});