Skip to content

Instantly share code, notes, and snippets.

@josue1dario2
Created December 25, 2022 21:02
Show Gist options
  • Save josue1dario2/c5b8953e774555aa76df24d989a0eaf7 to your computer and use it in GitHub Desktop.
Save josue1dario2/c5b8953e774555aa76df24d989a0eaf7 to your computer and use it in GitHub Desktop.
4 - Service
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