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

outdated

The Rx support for dartrofit

Dartrofit_adapter_rx for dartrofit #

The Rx support for dartrofit

First, depend on it

dependencies:
    dartrofit_adapter_rx: latest version

Then, add it to Dartrofit configuration

final dartrofit = Dartrofit(Uri.parse('http://0.0.0.0:7777/'))
  ..adapterFactories.add(SubjectAdaptFactory());

Usage #

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

@WebApi()
abstract class Api {
  Api._();

  factory Api(Dartrofit dartrofit) = _$Api;

  @GET('books/v1/getBooks')
  rx.Subject<Response<Map<String, dynamic>>> getBookNumber();
}
0
likes
20
points
50
downloads

Publisher

verified publishernikeo.cn

Weekly Downloads

The Rx support for dartrofit

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dartrofit, rxdart, wedzera

More

Packages that depend on dartrofit_adapter_rx