getItem method

Future<BaseModel?> getItem(
  1. int id
)

Implementation

Future<BaseModel?> getItem(int id) async {
  final response = await get('$itemUrl/$id/');
  return response.body;
}