zam_command_pattern 0.1.0 copy "zam_command_pattern: ^0.1.0" to clipboard
zam_command_pattern: ^0.1.0 copied to clipboard

outdated

Provides utilities to implement the command pattern (a behavioral design pattern).

Command Pattern #

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 #

0
likes
0
pub points
3%
popularity

Publisher

verified publisherzamstation.com

Provides utilities to implement the command pattern (a behavioral design pattern).

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

zam_core, zam_factory_pattern

More

Packages that depend on zam_command_pattern