INNER CODE UNIT · Dart

TestController

EmadBeltaje/flutter_getx_template · integration_test/awesome_notifications_helper_test.dart:87

class TestController extends GetxController {
  // notifications counter
  Rx<int> notificationsCounter = 0.obs;
  // when user click on action button
  Rx<String> notificationAction = ''.obs;

  incrementCounter() {
    notificationsCounter.value += 1;
  }

  decrementCounter() {
    notificationsCounter.value -= 1;
  }

  onNotificationActionClicked(String actionKey){
    notificationAction.value = actionKey;
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…