setMockDatabaseFactory function

  1. @visibleForTesting
void setMockDatabaseFactory(
  1. DatabaseFactory? factory
)

Change the default factory used.

Test only.

Implementation

@visibleForTesting
void setMockDatabaseFactory(DatabaseFactory? factory) {
  // ignore: invalid_use_of_visible_for_testing_member
  sqfliteDatabaseFactory = factory as SqfliteDatabaseFactory?;
}