ᅠ
Size: a a a
ᅠ
SM
SM
ᅠ
MP
MP
ᅠ
MP
MP
SM
dart
@RestApi(baseUrl: "https://5d42a6e2bc64f90014a56ca0.mockapi.io/api/v1/")
abstract class RestClient {
factory RestClient(Dio dio, {String baseUrl}) = _RestClient;
@Post("/counter")
Future<int> postCounter(@Body() int count);
}
final dio = Dio();
dio.options.headers["token"] = token;
final client = RestClient(dio);
SM
SM
SM
MP
dart
@RestApi(baseUrl: "https://5d42a6e2bc64f90014a56ca0.mockapi.io/api/v1/")
abstract class RestClient {
factory RestClient(Dio dio, {String baseUrl}) = _RestClient;
@Post("/counter")
Future<int> postCounter(@Body() int count);
}
final dio = Dio();
dio.options.headers["token"] = token;
final client = RestClient(dio);
SM
SM
SM
MP
SM
MP