13 lines
243 B
Dart
13 lines
243 B
Dart
|
class Quote {
|
||
|
final String text;
|
||
|
final String author;
|
||
|
final String imagePath;
|
||
|
bool isFavorite;
|
||
|
|
||
|
Quote(this.text, this.author, this.imagePath, [this.isFavorite = false]);
|
||
|
|
||
|
void toggleFavorite() {
|
||
|
isFavorite = !isFavorite;
|
||
|
}
|
||
|
}
|