MacAddressField constructor
MacAddressField({
- MacAddressValidator? macAddressValidator,
- String validatorMessage = 'Informe o MAC Address.',
- String? labelPrefix,
- String? label,
- Widget? labelWidget,
- TextEditingController? controller,
- String? validator(
- String? value
- List<
TextInputFormatter> ? inputFormatter, - TextAlign textAlign = TextAlign.start,
- void onSaved()?,
- String? initialValue,
- bool enabled = true,
- AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
- ValueChanged<
String?> ? onChanged, - FocusNode? focusNode,
- TextInputAction? textInputAction,
- ValueChanged<
String?> ? onFieldSubmitted, - bool autocorrect = false,
- bool enableSuggestions = true,
- EdgeInsets scrollPadding = const EdgeInsets.all(20),
- bool enableInteractiveSelection = true,
- bool filled = false,
- Color? fillColor,
- bool required = true,
- Iterable<
String> ? autofillHints, - TextStyle? style,
- InputDecoration? decoration,
- EdgeInsets padding = const EdgeInsets.all(8),
- String? hintText,
- EdgeInsets? contentPadding,
- String? counterText = '',
- Widget? prefix,
- Widget? prefixIcon,
- Widget? suffix,
- Widget? suffixIcon,
- void onTap()?,
- int? sizeExtraSmall,
- int? sizeSmall,
- int? sizeMedium,
- int? sizeLarge,
- int? sizeExtraLarge,
- double? minHeight,
- Key? key,
Implementation
MacAddressField({
MacAddressValidator? macAddressValidator,
super.validatorMessage = 'Informe o MAC Address.',
super.labelPrefix,
super.label,
super.labelWidget,
super.controller,
super.validator,
super.inputFormatter,
super.textAlign,
super.onSaved,
super.initialValue,
super.enabled,
super.autoValidateMode,
super.onChanged,
super.focusNode,
super.textInputAction,
super.onFieldSubmitted,
super.autocorrect,
super.enableSuggestions = true,
super.scrollPadding,
super.enableInteractiveSelection,
super.filled,
super.fillColor,
super.required,
super.autofillHints,
super.style,
super.decoration,
super.padding,
super.hintText,
super.contentPadding,
super.counterText,
super.prefix,
super.prefixIcon,
super.suffix,
super.suffixIcon,
super.onTap,
super.sizeExtraSmall,
super.sizeSmall,
super.sizeMedium,
super.sizeLarge,
super.sizeExtraLarge,
super.minHeight,
super.key,
}) : assert(
initialValue == null || controller == null,
'initialValue or controller must be null.',
),
assert(
label == null || labelWidget == null,
'label or labelWidget must be null.',
),
super(
abstractValidator: macAddressValidator ?? MacAddressValidator(),
maxLength: 17,
textCapitalization: TextCapitalization.characters,
);