dartrofit_adapter_rx 1.1.0
dartrofit_adapter_rx: ^1.1.0 copied to clipboard

Dart native
Flutter Android iOS Linux macOS Windows

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';

abstract class MyService {

  factory MyService(Dartrofit dartrofit) = _$MyService;

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

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

Download #

  dartrofit_adapter_rx: ^1.1.0