inputBorder method
Input Border Decoration
Implementation
InputBorder? inputBorder({
Color? borderColor,
}) {
if (as?.borderType == UIBorderType.outlineBorder || borderType == UIBorderType.outlineBorder) {
return OutlineInputBorder(
borderRadius: BorderRadius.all(
Radius.circular(
UIUtils.getDouble(as, as?.borderRadius, borderRadius, 4.0),
),
),
borderSide: BorderSide(
color: borderColor!,
width: UIUtils.getDouble(as, as?.borderWidth, borderWidth, 1.0),
),
);
} else if (as?.borderType == UIBorderType.underlineBorder || borderType == UIBorderType.underlineBorder) {
return UnderlineInputBorder(
borderSide: BorderSide(
color: borderColor!,
width: UIUtils.getDouble(as, as?.borderWidth, borderWidth, 1.0),
),
);
} else {
return null;
}
}