mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 23:39:14 +00:00
Move library to a top-level variable, since it never changes (#887)
This commit is contained in:
@@ -7,9 +7,9 @@ import 'author.dart';
|
||||
class Book {
|
||||
final int id;
|
||||
final String title;
|
||||
late final Author author;
|
||||
final Author author;
|
||||
final bool isPopular;
|
||||
final bool isNew;
|
||||
|
||||
Book(this.id, this.title, this.isPopular, this.isNew);
|
||||
Book(this.id, this.title, this.isPopular, this.isNew, this.author);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user