buildField method

  1. @override
Widget buildField(
  1. BuildContext context
)

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;
}