border method

void border({
  1. ColorToken? color,
  2. double? width,
})

Replaces border color and/or width on supported widgets (Container).

At least one of color or width must be supplied.

Implementation

void border({ColorToken? color, double? width}) {
  if (color == null && width == null) {
    throw ArgumentError('border(...) requires color, width, or both.');
  }
  _border = BrownfieldBorderPatch._(color: color, width: width);
}