SqfliteDatabaseFactoryLogger constructor

  1. @experimental
SqfliteDatabaseFactoryLogger(
  1. DatabaseFactory factory, {
  2. SqfliteLoggerOptions? options,
})

Wrap each call in a logger.

Implementation

@experimental
factory SqfliteDatabaseFactoryLogger(DatabaseFactory factory,
    {SqfliteLoggerOptions? options}) {
  var delegate = factory;
  if (factory is SqfliteDatabaseFactoryLogger) {
    delegate = (factory as _SqfliteDatabaseFactoryLogger)._delegate;
  }
  return _SqfliteDatabaseFactoryLogger(
      delegate as SqfliteDatabaseFactory, options ?? SqfliteLoggerOptions());
}