mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-22 17:55:17 +00:00
Fix a few notices
This commit is contained in:
@ -50,8 +50,9 @@ abstract class MainController extends State<MainRoute> {
|
||||
int get numberOfPages => _pagesStack.length;
|
||||
|
||||
/// Get current instance of Home controller
|
||||
///
|
||||
/// A future implementation might need context again, that is why it is required
|
||||
static MainController? of(BuildContext context) {
|
||||
assert(context != null); // A future implementation might need context again
|
||||
return mainControllerKey.currentState;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user