copyWithBorder method

InputDecoration copyWithBorder(
  1. InputBorder? border
)

Creates a copy of this InputDecoration with the same border applied to all border states.

This includes:

  • default border
  • enabled border
  • focused border
  • error border
  • focused error border

Implementation

InputDecoration copyWithBorder(InputBorder? border) {
  return copyWith(
    border: border,
    enabledBorder: border,
    focusedBorder: border,
    errorBorder: border,
    focusedErrorBorder: border,
  );
}