resolveBackgroundColor static method

Color? resolveBackgroundColor(
  1. BuildContext context,
  2. FlyStyle flyStyle
)

Resolve background color for custom borders

Implementation

static Color? resolveBackgroundColor(
  BuildContext context,
  FlyStyle flyStyle,
) {
  return flyStyle.bg != null
      ? FlyColorUtils.applyToContainer(
          context,
          flyStyle.copyWith(color: flyStyle.bg),
        )
      : null;
}