maac_workflow 0.1.1 copy "maac_workflow: ^0.1.1" to clipboard
maac_workflow: ^0.1.1 copied to clipboard

maac_workflow is a resilient, stateful, and declarative asynchronous workflow and step pipeline engine for Dart & Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:maac_workflow/maac_workflow.dart';

import 'app.dart';
import 'di/service_locator.dart';

void main() async {
  registerViewModels();
  await _tinyWorkflowExample();
  runApp(const MyApp());
}

/// See the "Basics" section in-app for a full tour of the package.
Future<void> _tinyWorkflowExample() async {
  final runner = WorkflowRunner<FlowContext>(
    steps: [
      WorkflowStep<FlowContext>.action(
        id: 'say_hello',
        execute: (context, token) async {
          debugPrint('Hello from maac_workflow!');
          return const StepSuccess();
        },
      ),
    ],
  );
  final result = await runner.run(FlowContext());
  debugPrint('_tinyWorkflowExample result: $result');
}
0
likes
160
points
77
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

maac_workflow is a resilient, stateful, and declarative asynchronous workflow and step pipeline engine for Dart & Flutter.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

async, flutter, meta

More

Packages that depend on maac_workflow