context<T> method
Implementation
CommandDefinitionBuilder context<T>(String key, Function(T) fn) {
final command =
_commandMapper.entries.firstWhere((element) => element.key == key);
fn(command.value());
return this;
}
CommandDefinitionBuilder context<T>(String key, Function(T) fn) {
final command =
_commandMapper.entries.firstWhere((element) => element.key == key);
fn(command.value());
return this;
}