action_box 0.0.12 copy "action_box: ^0.0.12" to clipboard
action_box: ^0.0.12 copied to clipboard

outdated

This package isolates business logic so that it can be reused.

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: 'MyActionBox',
    actionRootType: 'ActionRoot',
    generateSourceDir: ['*']
)
final actionBox = MyActionBox.instance;

void howToUse() {
  //request data
  actionBox.go(action: (d) => d.valueConverter.getStringInStringOutValue);
  //or
  actionBox(
    action: (root) => root.valueConverter.getStringInStringOutValue,
    param: 'test',
  );

  //subscribe result
  actionBox(
      action: (d) => d.valueConverter.getStringInStringOutValue,
      onNext: (String result) {
        print(result);
      }
  );
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

2
likes
0
pub points
12%
popularity

Publisher

unverified uploader

This package isolates business logic so that it can be reused.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

rxdart

More

Packages that depend on action_box