Database constructor

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

Main database constructor.

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

Implementation

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