lint cleanup

This commit is contained in:
Christien Rioux 2023-07-26 17:42:11 -04:00
parent fe9d9f8aca
commit 9fa1666e8b
22 changed files with 178 additions and 155 deletions

View file

@ -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: