payment_info_state.dart 619 B

12345678910111213141516171819202122232425
  1. import 'package:cs_resources/generated/l10n.dart';
  2. import 'package:flutter/material.dart';
  3. class PaymentInfoState{
  4. //表单的校验与数据
  5. final Map<String, Map<String, dynamic>> formData;
  6. // =================================== Begin ↓ ===================================
  7. PaymentInfoState({
  8. Map<String, Map<String, dynamic>>? formData,
  9. }) : formData = formData ??
  10. {
  11. 'note': {
  12. 'value': '',
  13. 'controller': TextEditingController(),
  14. 'focusNode': FocusNode(),
  15. 'hintText': S.current.type_here,
  16. 'obsecure': false,
  17. },
  18. };
  19. }