decoration property

InputDecoration get decoration

Input Decoration

Implementation

InputDecoration get decoration {
  return InputDecoration(
    enabledBorder: inputBorder(
      borderColor: UIUtils.getColor(as, as?.borderColor, borderColor, Colors.blue),
    ),
    focusedBorder: inputBorder(
      borderColor: UIUtils.getColor(as, as?.focusBorderColor, focusBorderColor, Colors.blue),
    ),
    errorBorder: inputBorder(
      borderColor: UIUtils.getColor(as, as?.errorBorderColor, errorBorderColor, Colors.red),
    ),
    fillColor: UIUtils.getColor(as, as?.bgColor, bgColor, Colors.transparent),
    filled: bgColor != null || as?.bgColor != null,
    errorStyle: TextStyle(color: Colors.red),
    contentPadding: EdgeInsets.all(padding ?? 20.0),
    hintText: hint,
    hintStyle: TextStyle(
      color: UIUtils.getColor(as, as?.hintColor, hintColor, Colors.black),
    ),
    labelText: label,
    labelStyle: TextStyle(
      color: UIUtils.getColor(as, as?.labelColor, labelColor, Colors.black),
    ),
    suffixIcon: suffix,
    prefixIcon: prefix,
    floatingLabelBehavior: floatingLabelBehavior,
  );
}