getValue method
Retorna o map com a chave sendo o get Name
Implementation
@override
Map<String, dynamic> getValue() {
return {
name: (latext && controller.text.isNotEmpty)
? controller.text
: controller.text.isNotEmpty
? inputType == InputType.currency
? double.parse(
controller.text.replaceAll(".", "").replaceAll(',', "."))
: inputType == InputType.date
? "${controller.text.split('/').reversed.join("-")}T00:00:00.000-03:00"
: obscureText
? controller.text
: (controller.text.toUpperCase())
: ""
};
}