123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import 'package:flutter/material.dart';
- class SelectUnitState {
- // //表单的校验与数据
- // final Map<String, Map<String, dynamic>> formData;
- //
- // // =================================== Begin ↓ ===================================
- //
- // SelectUnitState({
- // Map<String, Map<String, dynamic>>? formData,
- // }) : formData = formData ??
- // {
- // 'block': {
- // 'value': '',
- // 'controller': TextEditingController(),
- // 'hintText': '',
- // 'focusNode': FocusNode(),
- // 'obsecure': false,
- // },
- // 'unit': {
- // 'value': '',
- // 'controller': TextEditingController(),
- // 'hintText': '',
- // 'focusNode': FocusNode(),
- // 'obsecure': false,
- // },
- // 'room': {
- // 'value': '',
- // 'controller': TextEditingController(),
- // 'hintText': '',
- // 'focusNode': FocusNode(),
- // 'obsecure': false,
- // },
- // };
- String? selectedUnitId;
- String? selectedUnitName;
- SelectUnitState({
- this.selectedUnitId,
- this.selectedUnitName,
- });
- SelectUnitState copyWith({
- String? selectedUnitId,
- String? selectedUnitName,
- }) {
- return SelectUnitState(
- selectedUnitId: selectedUnitId ?? this.selectedUnitId,
- selectedUnitName: selectedUnitName ?? this.selectedUnitName,
- );
- }
- }
|