getForegroundDecoration method

Decoration? getForegroundDecoration()

Implementation

Decoration? getForegroundDecoration() {
  var border = getBorder();
  var radius = getBorderRadius();
  var showRadius = radius != null && (border == null || border.isUniform);
  return BoxDecoration(
    borderRadius: showRadius ? radius : null,
    border: border,
  );
}