issues
search
mhmzdev
/
awesome_snackbar_content
A beautiful dart package to uplift your SnackBar experiences in the application
https://pub.dev/packages/awesome_snackbar_content
MIT License
100
stars
67
forks
source link
Minor Refactoring
#21
Closed
neliousness
closed
1 year ago
neliousness
commented
1 year ago
Description
changed the if-statements in the assetSVG method to a switch statement
changed ContentType constructor to a const class so that we can use it in the above switch statement
Note :
This change was made to improve code readability
Though there is no significant peformance impact, switch statements are generally more performant than if else statements
Description
Note :