toInputBorder method
InputBorderStyle to InputBorder
Implementation
InputBorder toInputBorder() {
final borderSide = BorderSide(
color: color, width: width, style: style, strokeAlign: strokeAlign);
switch (borderType) {
case BorderType.outline:
return OutlineInputBorder(
gapPadding: gapPadding,
borderRadius: radius,
borderSide: borderSide);
case BorderType.underline:
return UnderlineInputBorder(
borderRadius: radius, borderSide: borderSide);
case BorderType.none:
return InputBorder.none;
}
}