printBlock method
Implementation
SuccessClosure printBlock(String message, [String indent = '']) {
final baseMessage = "$indent${message.trim()}";
printLine("$baseMessage =>");
return (bool success, [String? reason]) {
printFixed("$indent${message.trim()}");
if (success) {
printDone();
} else {
printFailed(reason, indent);
}
return success;
};
}