Skip to content

Commit

Permalink
Turn Author class into own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kara-Zor-El committed Nov 21, 2023
1 parent a7d1b77 commit c91b5c9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/providers/Author.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class Author {
final String name;
String? link;
List<String> roles = [];

Author({
required this.name,
this.link,
});

void addRole(String role) {
roles.add(role);
}
}

0 comments on commit c91b5c9

Please sign in to comment.