dartrofit_adapter_rx 1.1.0 copy "dartrofit_adapter_rx: ^1.1.0" to clipboard
dartrofit_adapter_rx: ^1.1.0 copied to clipboard

An Adapter for adapting rxdart types.

RxDart Adapter For Dartrofit #

pub package

An Adapter for adapting rxdart types. Available types:

  • The Subject<T> and Subject<Response<T>> where T is the body type.

Example #

import 'package:dartrofit/dartrofit.dart';
import 'package:rxdart/rxdart.dart' as rx;

part 'my_service.g.dart';

@Service()
abstract class MyService {
  MyService._();

  factory MyService(Dartrofit dartrofit) = _$MyService;

  @GET('book')
  rx.Subject<Response<ResponseBody>> getBook1(@Query('id') String id);

  @GET('book')
  rx.Subject<ResponseBody> getBook2(@Query('id') String id);
}

Download #

dependencies:
  dartrofit_adapter_rx: ^1.1.0
0
likes
20
points
50
downloads

Publisher

verified publishernikeo.cn

Weekly Downloads

An Adapter for adapting rxdart types.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dartrofit, rxdart, wedzera

More

Packages that depend on dartrofit_adapter_rx