zam_command_pattern 0.1.0 zam_command_pattern: ^0.1.0 copied to clipboard
Provides utilities to implement the command pattern (a behavioral design pattern).
Command Pattern #
Provides utilities to implement the command pattern.
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.