You can do something like this:
const BorderSide borderBase = BorderSide( color: Colors.red, width: 2, style: BorderStyle.solid,);Container( decoration: BoxDecoration( border: Border.all( color: borderBase.color, width: borderBase.width, style: borderBase.style, ), ), child: Text('Container 1'),)Container( decoration: BoxDecoration( border: Border( top: borderBase, ), ), child: Text('Container 2'),)
Not the best but still some reuse.