Database constructor

Database(
  1. ClassElement classElement,
  2. String name,
  3. List<Entity> entities,
  4. List<View> views,
  5. List<DaoGetter> daoGetters,
  6. int version,
  7. Set<TypeConverter> databaseTypeConverters,
  8. Set<TypeConverter> allTypeConverters,
)

Implementation

Database(
  this.classElement,
  this.name,
  this.entities,
  this.views,
  this.daoGetters,
  this.version,
  this.databaseTypeConverters,
  this.allTypeConverters,
)   : streamEntities =
          daoGetters.expand((dg) => dg.dao.streamEntities).toSet(),
      hasViewStreams = daoGetters.any((dg) => dg.dao.streamViews.isNotEmpty);