printError method

void printError({
  1. String info = '',
  2. Function logFunction = GetUtils.printFunction,
})

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);