dump method

void dump({
  1. void print(
    1. Object? object
    )?,
  2. bool? noStopwatch,
})

dump event by lines

Implementation

void dump({void Function(Object? object)? print, bool? noStopwatch}) {
  print ??= core.print;

  if (this is SqfliteLoggerBatchEvent) {
    if (noStopwatch ?? false) {
      print(toLogString(toMapNoOperationsNoStopwatch()));
    } else {
      print(toLogString(toMapNoOperations()));
    }
    for (var operation in (this as SqfliteLoggerBatchEvent).operations) {
      print('  $operation');
    }
  } else {
    // default to improve
    if (noStopwatch ?? false) {
      print(toStringNoStopwatch());
    } else {
      print(toString());
    }
  }
}