buildField method
Implementation
@override
Widget buildField(BuildContext context) {
if (widget.showDecorator) {
return InputDecorator(
decoration: InputDecoration(
label: widget.label.isEmpty ? null : Text(widget.label),
enabled: widget.enabled),
isEmpty: false,
child: widget.child,
);
}
return widget.child;
}