rxdart_codemod 0.1.5 rxdart_codemod: ^0.1.5 copied to clipboard
A collection of codemods to upgrade your RxDart code from one version to the next
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate rxdart_codemod
Use it
The package has the following executables:
$ 22_to_23
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add rxdart_codemod
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
rxdart_codemod: ^0.1.5
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:rxdart_codemod/extension_methods/suggestors/as_observable_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/concat_map_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/constructor_converters.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/error_stream_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/factory_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/factory_stream_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/observable_cast_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/simple_type_converters.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/static_factory_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/static_factory_stream_class_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/stream_factory_converter.dart';
import 'package:rxdart_codemod/extension_methods/suggestors/where_type_converter.dart';