Line data Source code
1 : part of '../main.dart'; 2 : 3 : /// Use this mixin if you don't want to implement [VRouteElement.beforeEnter], 4 : /// [VRouteElement.beforeUpdate], [VRouteElement.beforeLeave], [VRouteElement.afterEnter] 5 : /// and [VRouteElement.afterUpdate] 6 : /// 7 : /// This mixin will set them to doing nothing 8 : /// 9 : /// Note that you can still override these methods 10 : mixin VoidVGuard on VRouteElement { 11 : @override 12 40 : Future<void> beforeEnter(VRedirector vRedirector) async {} 13 : 14 : @override 15 36 : Future<void> beforeUpdate(VRedirector vRedirector) async {} 16 : 17 : @override 18 29 : Future<void> beforeLeave( 19 : VRedirector vRedirector, 20 : void Function(Map<String, String> state) saveHistoryState, 21 : ) async {} 22 : 23 40 : @override 24 : void afterEnter(BuildContext context, String? from, String to) {} 25 : 26 36 : @override 27 : void afterUpdate(BuildContext context, String? from, String to) {} 28 : }