Border.only constructor

Border.only({
  1. String? top,
  2. String? right,
  3. String? bottom,
  4. String? left,
})

Creates a border with only the specified sides.

Implementation

factory Border.only({
  String? top,
  String? right,
  String? bottom,
  String? left,
}) =>
    Border(
      top: top ?? '',
      right: right ?? '',
      bottom: bottom ?? '',
      left: left ?? '',
    );