I'm following this and getting errors "The name _RestClient isn't a type and can't be used in a redirected constructor.)
How do i solve it?
import 'package:retrofit/retrofit.dart';
import 'package:dio/dio.dart';
import 'package:utstyrapp/models/Item.dart';
@RestApi(baseUrl: "https://localhost:8080/")
abstract class RestClient {
factory RestClient(Dio dio) = _RestClient;
@GET("/items")
Future<List<Item>> getItems();
}