action_box

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

action box

A library for Dart developers.
Usage #
A simple usage example:
import 'package:action_box/action_box.dart';
//add generated file
import 'example.a.b.dart';

@ActionBoxConfig(
//actionBoxType: 'ActionBox',
//actionRootType: 'ActionRoot',
generateSourceDir: ['*']
)
final actionBox = ActionBox.shared();

void howToUse() async {
var bag = DisposeBag();
//receive result
actionBox((r) => r.valueConverter.getStringToListValue)
.map()
.listen((result) {
result?.forEach((v) => print(v));
}).disposedBy(bag);

//request data
actionBox((r) => r.valueConverter.getStringToListValue)
.go(param: 'action box test!');

await Future.delayed(Duration(seconds: 10));
//call dispose method when completed
bag.dispose();
}
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.