getTableBorder method

TableBorder? getTableBorder(
  1. Map? spec
)

Implementation

TableBorder? getTableBorder(Map? spec) {
  if (spec == null || spec.isEmpty) return null;

  return TableBorder(
    left: getBorderSide(spec["left"]) ?? BorderSide.none,
    top: getBorderSide(spec["top"]) ?? BorderSide.none,
    right: getBorderSide(spec["right"]) ?? BorderSide.none,
    bottom: getBorderSide(spec["bottom"]) ?? BorderSide.none,
    horizontalInside:
        getBorderSide(spec["horizontalInside"]) ?? BorderSide.none,
    verticalInside: getBorderSide(spec["verticalInside"]) ?? BorderSide.none,
  );
}