apply static method

Widget apply(
  1. BuildContext context,
  2. FlyStyle style,
  3. Widget child
)

Applies border styling to a widget using the resolved Border

Implementation

static Widget apply(BuildContext context, FlyStyle style, Widget child) {
  // Check if any border is set
  if (!_hasBorder(style)) {
    return child;
  }

  // Handle custom borders (dashed, dotted, double)
  if (needsCustomBorder(style)) {
    return createBorderWidget(context, style, child);
  }

  // For solid borders, return child as-is since border will be applied via decoration
  // The container will handle the border through BoxDecoration
  return child;
}