callMethod method

  1. @override
dynamic callMethod(
  1. String methodName,
  2. List args
)
override

Implementation

@override
dynamic callMethod(String methodName, List<dynamic> args) {
  switch (methodName) {
    case 'log':
      return _log('log', args);
    case 'info':
      return _log('info', args);
    case 'warn':
      return _log('warn', args);
    case 'error':
      return _log('error', args);
    case 'debug':
      return _log('debug', args);
    case 'trace':
      return _trace(args);
    default:
      throw InvalidPropertyException(
          'console does not have a method named $methodName');
  }
}