Created
January 17, 2021 01:25
-
-
Save VB10/4b4a9ea7bbe467d7e3f0a66122d7dfc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum NetworkPath { LOGIN, BUILD_HOME } | |
extension NetworkPath on NetworkRoutes { | |
String get rawValue { | |
switch (this) { | |
case NetworkRoutes.LOGIN: | |
return 'login'; | |
case NetworkRoutes.BUILD_HOME: | |
return 'house'; | |
default: | |
throw Exception('Routes Not FouND'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment