mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Make constructor const
This commit is contained in:
@ -49,11 +49,11 @@ Future<Directory> getGitBaseDirectory() async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class GitRepo {
|
class GitRepo {
|
||||||
String folderName;
|
final String folderName;
|
||||||
String authorName;
|
final String authorName;
|
||||||
String authorEmail;
|
final String authorEmail;
|
||||||
|
|
||||||
GitRepo({
|
const GitRepo({
|
||||||
@required this.folderName,
|
@required this.folderName,
|
||||||
@required this.authorName,
|
@required this.authorName,
|
||||||
@required this.authorEmail,
|
@required this.authorEmail,
|
||||||
|
@ -40,7 +40,7 @@ class GitApp extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<Widget> _buildGitButtons() {
|
List<Widget> _buildGitButtons() {
|
||||||
var gitRepo = GitRepo(
|
var gitRepo = const GitRepo(
|
||||||
folderName: basePath,
|
folderName: basePath,
|
||||||
authorName: "Vishesh Handa",
|
authorName: "Vishesh Handa",
|
||||||
authorEmail: "noemail@example.com",
|
authorEmail: "noemail@example.com",
|
||||||
|
Reference in New Issue
Block a user