Border.all constructor

Border.all({
  1. String color = '000000',
  2. double width = 1,
})

all API.

Implementation

factory Border.all({String color = '000000', double width = 1}) {
  final BorderSide side = BorderSide(color: color, width: width);
  return Border(top: side, right: side, bottom: side, left: side);
}