buildBorder method

InputBorder? buildBorder({
  1. bool isUnderLine = false,
  2. required Color color,
  3. required double borderRadius,
})

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