Zam Command Pattern Library

Provides utilities to implement the command pattern.

Version Build Stars License

What's inside the package

Check out all the components in detail here

How to use

class StartEngineCommand implements CarCommand {
  @override
  Object execute() {
    print('Engine Started.');
    return true;
  }
}

void main() {
  final command = StartEngineCommand();
  command.execute(); // Prints 'Engine Started.'
}

To learn more, move on to the example section or check out this dedicated example in github.

Contributors

Libraries

exceptions
zam_command_pattern