printError method
Prints an error message with optional additional info
.
Allows specifying a custom logFunction
to handle the printing.
Implementation
void printError({
String info = '',
Function logFunction = GetUtils.printFunction,
}) =>
logFunction('Error: $runtimeType', this, info, isError: true);