Created
December 25, 2022 21:02
-
-
Save josue1dario2/c5b8953e774555aa76df24d989a0eaf7 to your computer and use it in GitHub Desktop.
4 - Service
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
class Service { | |
final int value; | |
Service(this.value); | |
static bool isActive(value) { | |
if (value > 0) { | |
return true; | |
} | |
return false; | |
} | |
static String text(value) { | |
return value.toString(); | |
} | |
static double toDouble(value) { | |
return value / 100; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment