border method

TextField border({
  1. Color color = const Color(0xff95d9f1),
  2. double width = 1,
  3. double radius = 0,
})

Implementation

TextField border({Color color = const Color(0xff95d9f1), double width = 1, double radius = 0}) {
  var newDecoration = InputDecoration(
    border: OutlineInputBorder(
      borderSide: BorderSide(color: color, width: width),
      borderRadius: BorderRadius.all(Radius.circular(radius)),
    ),
  );
  var merge = decoration?.copyWith(
          border: OutlineInputBorder(
        borderSide: BorderSide(color: color, width: width),
        borderRadius: BorderRadius.all(Radius.circular(radius)),
      )) ??
      newDecoration;

  return copyWith(decoration: merge);
}