Database constructor

Database({
  1. List<Text> title = const <Text>[],
  2. @deprecated String createdTime = '',
  3. @deprecated String lastEditedTime = '',
  4. @deprecated String id = '',
})

Main database constructor.

Important: This main constructor will become like the newDatabase. If you need to create an instance with this parameters then use withDefaults constructor.

Can receive the title, the createdTime, the lastEditedTime and the database id.

Implementation

Database({
  this.title: const <Text>[],
  @deprecated String createdTime: '',
  @deprecated String lastEditedTime: '',
  @deprecated String id: '',
}) {
  this.id = id;
  this.setBaseProperties(
    createdTime: createdTime,
    lastEditedTime: lastEditedTime,
  );
}