logError method

void logError(
  1. String tag,
  2. Object error, [
  3. StackTrace? stackTrace
])

Implementation

void logError(String tag, Object error, [StackTrace? stackTrace]) {
  if (isShowLog) {
    print('$tag: $error');
    if (stackTrace != null) {
      print(stackTrace);
    }
  }
}