success method

  1. @protected
int success({
  1. String? message,
})

Prints 0 code and prints a success message if provided.

Implementation

@protected
int success({String? message}) {
  if (message != null) printInfo(message);
  return 0;
}