StateContainer: Mark a field final

With this we're one step closer to making the StateContainer a stateless
widget.
This commit is contained in:
Vishesh Handa
2019-12-08 01:27:40 +01:00
parent 92f0109733
commit 62207eb6c7

View File

@ -35,7 +35,11 @@ class StateContainer extends StatefulWidget {
}
class StateContainerState extends State<StateContainer> {
AppState appState;
final AppState appState;
// FIXME: The gitRepo should never be changed once it has been setup
// We should always just be modifying the 'git remotes'
// With that, the StateContainer can be a StatelessWidget
GitNoteRepository _gitRepo;
StateContainerState(this.appState);