Database constructor
Database({
- List<
Text> title = const <Text>[], - @deprecated String createdTime = '',
- @deprecated String lastEditedTime = '',
- @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,
);
}