error function

void error(
  1. dynamic arg1, [
  2. dynamic arg2 = '',
  3. dynamic arg3 = '',
  4. dynamic arg4 = '',
  5. dynamic arg5 = '',
  6. dynamic arg6 = '',
  7. dynamic arg7 = '',
  8. dynamic arg8 = '',
  9. dynamic arg9 = '',
  10. dynamic arg10 = '',
])

prints messages to console with optional arguments using "red" pen.

Implementation

void error(
  dynamic arg1, [
  dynamic arg2 = '',
  dynamic arg3 = '',
  dynamic arg4 = '',
  dynamic arg5 = '',
  dynamic arg6 = '',
  dynamic arg7 = '',
  dynamic arg8 = '',
  dynamic arg9 = '',
  dynamic arg10 = '',
]) {
  final o =
      _getArgs(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
  print(red(o));
}