state.dart 453 B

12345678910111213141516171819
  1. import 'package:get/get.dart';
  2. class BindState {
  3. // title
  4. final _title = "".obs;
  5. set title(value) => _title.value = value;
  6. get title => _title.value;
  7. // 是否同意协议
  8. final _isAgree = false.obs;
  9. set isAgree(bool value) => _isAgree.value = value;
  10. bool get isAgree => _isAgree.value;
  11. // 当前页面状态
  12. final _isStepOne = true.obs;
  13. set isStepOne(value) => _isStepOne.value = value;
  14. get isStepOne => _isStepOne.value;
  15. }