mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-06 16:25:15 -04:00
lint cleanup
This commit is contained in:
parent
fe9d9f8aca
commit
9fa1666e8b
22 changed files with 178 additions and 155 deletions
|
@ -24,14 +24,18 @@ class RouterNotifier extends _$RouterNotifier implements Listenable {
|
|||
|
||||
// When this notifier's state changes, inform GoRouter
|
||||
ref.listenSelf((_, __) {
|
||||
if (state.isLoading) return;
|
||||
if (state.isLoading) {
|
||||
return;
|
||||
}
|
||||
routerListener?.call();
|
||||
});
|
||||
}
|
||||
|
||||
/// Redirects when our state changes
|
||||
String? redirect(BuildContext context, GoRouterState state) {
|
||||
if (this.state.isLoading || this.state.hasError) return null;
|
||||
if (this.state.isLoading || this.state.hasError) {
|
||||
return null;
|
||||
}
|
||||
|
||||
switch (state.location) {
|
||||
case IndexPage.path:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue