From 45949890ccec2286c87f38db1a1638175e9f82a6 Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Mon, 20 Apr 2020 16:59:39 -0400 Subject: [PATCH] Make route handler constant --- lib/src/common.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/common.dart b/lib/src/common.dart index fac9f6c..ab1b86d 100644 --- a/lib/src/common.dart +++ b/lib/src/common.dart @@ -17,7 +17,7 @@ enum HandlerType { /// class Handler { - Handler({this.type = HandlerType.route, this.handlerFunc}); + const Handler({this.type = HandlerType.route, this.handlerFunc}); final HandlerType type; final HandlerFunc handlerFunc; }