heavyTask function

String heavyTask(
  1. int value
)

Implementation

String heavyTask(int value) {
  int result = 0;
  for (int i = 0; i < value * 1000000; i++) {
    result += i % 10;
  }
  return 'Task Completed with Result: $result';
}