42 lines
976 B
Dart
42 lines
976 B
Dart
import 'dart:async';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:birzha/services/validator.dart';
|
|
|
|
class TextInputMetaData {
|
|
final String key;
|
|
final String name;
|
|
final Validation validation;
|
|
final List<TextInputFormatter>? formatters;
|
|
final String? hint;
|
|
final String? label;
|
|
final Widget? bottomInfo;
|
|
final FutureOr<String?> Function(BuildContext)? pickerMode;
|
|
final TextInputType? type;
|
|
final bool autoFocus;
|
|
final bool password;
|
|
final Color? fillColor;
|
|
final bool filled;
|
|
final bool readOnly;
|
|
final bool showSuffix;
|
|
|
|
TextInputMetaData({
|
|
this.filled = false,
|
|
this.fillColor,
|
|
this.readOnly = false,
|
|
this.showSuffix = false,
|
|
required this.name,
|
|
this.password = false,
|
|
this.autoFocus = false,
|
|
this.type,
|
|
required this.validation,
|
|
required this.key,
|
|
this.formatters,
|
|
this.hint,
|
|
this.label,
|
|
this.bottomInfo,
|
|
this.pickerMode,
|
|
});
|
|
}
|