Field.capitalizeSentences constructor
      
      Field.capitalizeSentences(
    
- String key, {
- String? label,
- dynamic value,
- FormValidator? validate,
- bool autofocus = false,
- String? dummyData,
- Widget? header,
- TextStyle? titleStyle,
- dynamic style,
- Map<String, NyTextField Function(NyTextField nyTextField)> ? metaData = const {},
- bool? readOnly,
- Widget? prefixIcon,
- bool clearable = false,
- Widget? clearIcon,
Field.capitalizeSentences is a constructor that helps in managing capitalizeSentences fields
Implementation
Field.capitalizeSentences(
  this.key, {
  this.label,
  this.value,
  this.validate,
  this.autofocus = false,
  this.dummyData,
  this.header,
  this.footer,
  this.titleStyle,
  this.style,
  this.metaData = const {},
  this.hidden = false,
  this.readOnly,
  Widget? prefixIcon,
  bool clearable = false,
  Widget? clearIcon,
}) : cast = FormCast.capitalizeSentences(
        prefixIcon: prefixIcon,
        clearable: clearable,
        clearIcon: clearIcon,
      ) {
  if (style == null) return;
  metaData = {};
  if (style is String) {
    style = style;
    return;
  }
  if (style is Map) {
    style as Map<String, dynamic>;
    metaData!["decoration_style"] =
        (style as Map<String, dynamic>).entries.first.value;
    style = (style as Map<String, dynamic>).entries.first.key;
  }
}