error method

  1. @protected
int error(
  1. int code, {
  2. String? message,
})

Returns error code and prints a error message if provided.

Implementation

@protected
int error(int code, {String? message}) {
  if (message != null) printError(message);
  return code;
}