buildBorder method
this is the buildBorder of the custom text field
Implementation
InputBorder? buildBorder({
/// this is the isUnderLine of the custom text field
bool isUnderLine = false,
required Color color,
required double borderRadius,
}) {
return isUnderLine
? UnderlineInputBorder(
borderSide: BorderSide(color: focusedBorderColor ?? Colors.blue),
borderRadius: BorderRadius.circular(borderRadius),
)
: OutlineInputBorder(
borderSide: BorderSide(color: color),
borderRadius: BorderRadius.circular(borderRadius),
);
}